
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.3 组件 · Girls Coding Day Tutorial</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Yang Wen <wenyang@codingirls.club>">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../Project.html" />
    
    
    <link rel="prev" href="2-Bootstrap-CSS.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://girlscodingday.org/" target="_blank" class="custom-link">Girls Coding Day</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Kickoff/">
            
                <a href="../Kickoff/">
            
                    
                    KickOff Party
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Kickoff/1-Teaching-Target.html">
            
                <a href="../Kickoff/1-Teaching-Target.html">
            
                    
                    1.1 教学目的
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Kickoff/2-Software-Tool.html">
            
                <a href="../Kickoff/2-Software-Tool.html">
            
                    
                    1.2 软件和工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Kickoff/3-Learning-Method.html">
            
                <a href="../Kickoff/3-Learning-Method.html">
            
                    
                    1.3 教学方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../Kickoff/4-Web-Basics.html">
            
                <a href="../Kickoff/4-Web-Basics.html">
            
                    
                    1.4 WEB基本知识和历史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../Kickoff/5-Pre-Homework.html">
            
                <a href="../Kickoff/5-Pre-Homework.html">
            
                    
                    1.5 课前自学
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../HTML/">
            
                <a href="../HTML/">
            
                    
                    Intro to HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../HTML/1-HTML-Basics.html">
            
                <a href="../HTML/1-HTML-Basics.html">
            
                    
                    2.1 初识HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../HTML/2-Common-HTML.html">
            
                <a href="../HTML/2-Common-HTML.html">
            
                    
                    2.2 HTML常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../HTML/3-Webpage-Anatomy.html">
            
                <a href="../HTML/3-Webpage-Anatomy.html">
            
                    
                    2.3 解剖网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../HTML/4-Best-Practice.html">
            
                <a href="../HTML/4-Best-Practice.html">
            
                    
                    2.4 动手 - 修改更多HTML
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../CSS/">
            
                <a href="../CSS/">
            
                    
                    Intro to CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../CSS/1-CSS-Basics.html">
            
                <a href="../CSS/1-CSS-Basics.html">
            
                    
                    3.1 初识CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../CSS/2-Common-CSS.html">
            
                <a href="../CSS/2-Common-CSS.html">
            
                    
                    3.2 CSS常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../CSS/3-Box-Model.html">
            
                <a href="../CSS/3-Box-Model.html">
            
                    
                    3.3 CSS盒子模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../CSS/4-Chrome-Developer-Tool.html">
            
                <a href="../CSS/4-Chrome-Developer-Tool.html">
            
                    
                    3.4 使用Chrome开发者工具调试样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../CSS/5-CSS-Best-Practice.html">
            
                <a href="../CSS/5-CSS-Best-Practice.html">
            
                    
                    3.5 动手 - 修改更多CSS样式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    Intro to Bootstrap
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="1-Grid.html">
            
                <a href="1-Grid.html">
            
                    
                    4.1 布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="2-Bootstrap-CSS.html">
            
                <a href="2-Bootstrap-CSS.html">
            
                    
                    4.2 基础Bootstrap CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.3" data-path="3-Components.html">
            
                <a href="3-Components.html">
            
                    
                    4.3 组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Project.html">
            
                <a href="../Project.html">
            
                    
                    大作业
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Share.html">
            
                <a href="../Share.html">
            
                    
                    分享
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.3 组件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7EC4;&#x4EF6;">&#x7EC4;&#x4EF6;</h1>
<blockquote>
<p>&#x65E0;&#x6570;&#x53EF;&#x590D;&#x7528;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x5305;&#x62EC;&#x5B57;&#x4F53;&#x56FE;&#x6807;&#x3001;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x3001;&#x5BFC;&#x822A;&#x3001;&#x8B66;&#x544A;&#x6846;&#x3001;&#x5F39;&#x51FA;&#x6846;&#x7B49;&#x66F4;&#x591A;&#x529F;&#x80FD;&#x3002;</p>
</blockquote>
<p>&#x6211;&#x4EEC;&#x63A5;&#x4E0B;&#x6765;&#x8981;&#x5B66;&#x4E60;&#x7684;&#x4E1C;&#x897F;&#x5462;&#xFF0C;&#x662F;Bootstrap&#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x7684;&#x4E00;&#x4E9B;&#x7EC4;&#x4EF6;&#xFF0C;&#x8FD9;&#x4E9B;&#x7EC4;&#x4EF6;&#x7684;&#x4F7F;&#x7528;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF0C;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x5FEB;&#x6377;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x642D;&#x5EFA;&#x7F51;&#x7AD9;&#xFF0C;&#x5E76;&#x4E14;&#x80FD;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;&#x4E0D;&#x9519;&#x7684;&#x663E;&#x793A;&#x6548;&#x679C;&#x3002;&#x6211;&#x4EEC;&#x6700;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x5C31;&#x662F;&#xFF1A;HTML&#x7684;&#x7ED3;&#x6784;&#x548C;bootstrap&#x63D0;&#x4F9B;&#x6DFB;&#x52A0;&#x5230;&#x7ED3;&#x6784;&#x4E0A;&#x7684;&#x7C7B;&#x4EE5;&#x53CA;&#x5C5E;&#x6027;&#x3002;
&#x8FD9;&#x4E9B;&#x7EC4;&#x4EF6;&#x7684;&#x4EA4;&#x4E92;&#x529F;&#x80FD;&#x662F;&#x4F9D;&#x8D56;&#x4E8E;jQuery&#x5E93;&#x5B9E;&#x73B0;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x8FD8;&#x5FC5;&#x987B;&#x5F15;&#x5165;jQuery.js&#xFF0C;&#x4E14;&#x5FC5;&#x987B;&#x5728;Bootstrap.js&#x4E4B;&#x524D;&#x3002;&#x6B63;&#x5F0F;&#x4E0A;&#x7EBF;&#x7684;&#x8BDD;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x538B;&#x7F29;&#x7248;&#x672C;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;../js/jquery-min-1.11.3.js&quot;</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;../js/bootstrap.min.js&quot;</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
</code></pre>
<h2 id="&#x4E00;&#x3001;&#x83DC;&#x5355;">&#x4E00;&#x3001;&#x83DC;&#x5355;</h2>
<h3 id="1-&#x57FA;&#x672C;&#x7528;&#x6CD5;">1. &#x57FA;&#x672C;&#x7528;&#x6CD5;</h3>
<p>&#x5728;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x770B;&#x5230;&#x7684;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x7EC4;&#x4EF6;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default dropdown-toggle&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;dropdownMenu1&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;dropdown&quot;</span> <span class="hljs-attr">aria-haspopup</span>=<span class="hljs-string">&quot;true&quot;</span> <span class="hljs-attr">aria-expanded</span>=<span class="hljs-string">&quot;true&quot;</span>&gt;</span>
    &#x4E0B;&#x62C9;&#x83DC;&#x5355;<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;caret&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-menu&quot;</span> <span class="hljs-attr">aria-labelledby</span>=<span class="hljs-string">&quot;dropdownMenu1&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x83DC;&#x5355;&#x9879;1<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x83DC;&#x5355;&#x9879;2<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x90A3;&#x4E48;&#xFF0C;&#x5230;&#x5E95;&#x54EA;&#x4E00;&#x4E9B;&#x5C5E;&#x6027;&#x662F;&#x5FC5;&#x987B;&#x7684;&#x3001;&#x7528;&#x6765;&#x63A7;&#x5236;&#x884C;&#x4E3A;&#x7684;&#x5462;&#xFF1F;&#x53C8;&#x6709;&#x54EA;&#x4E00;&#x90E8;&#x5206;&#x662F;&#x8D77;&#x5230;&#x4FEE;&#x9970;&#x4F5C;&#x7528;&#x7684;&#xFF1F;</p>
<p>&#x6211;&#x4EEC;&#x6765;&#x81EA;&#x5DF1;&#x7B80;&#x5316;&#x4E00;&#x4E0B;&#x8FD9;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-toggle&quot;</span><span class="hljs-string">data-toggle=&quot;dropdown&quot;</span>&gt;</span>&#x4E0B;&#x62C9;&#x83DC;&#x5355;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-menu&quot;</span> &gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>&#x83DC;&#x5355;&#x9879;1<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>&#x83DC;&#x5355;&#x9879;2<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x6211;&#x4EEC;&#x6765;&#x770B;&#x770B;&#x7B80;&#x5316;&#x524D;&#x540E;&#x7684;&#x5BF9;&#x6BD4;&#x56FE;&#xFF1A;</p>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-04-dropdown-1.jpg" alt=""></p>
<p>&#x5728;&#x4F7F;&#x7528;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x7EC4;&#x4EF6;&#x65F6;&#xFF0C;&#x5176;&#x7ED3;&#x6784;&#x8FD0;&#x7528;&#x7684;&#x6B63;&#x786E;&#x4E0E;&#x5426;&#x975E;&#x5E38;&#x7684;&#x91CD;&#x8981;&#xFF0C;&#x5982;&#x679C;&#x7ED3;&#x6784;&#x548C;&#x7C7B;&#x540D;&#x672A;&#x4F7F;&#x7528;&#x6B63;&#x786E;&#xFF0C;&#x76F4;&#x63A5;&#x5F71;&#x54CD;&#x7EC4;&#x4EF6;&#x662F;&#x5426;&#x80FD;&#x6B63;&#x5E38;&#x8FD0;&#x7528;&#x3002;&#x7ECF;&#x8FC7;&#x6211;&#x4EEC;&#x4E0A;&#x9762;&#x7684;&#x7B80;&#x5316;&#xFF0C;&#x6700;&#x7EC8;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6838;&#x5FC3;&#x8981;&#x6C42;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ol>
<li>&#x4F7F;&#x7528;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;<code>.dropdown</code>&#x7684;&#x5BB9;&#x5668;&#x5305;&#x88F9;&#x4E86;&#x6574;&#x4E2A;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x5143;&#x7D20;&#xFF0C;&#x793A;&#x4F8B;&#x4E2D;&#x4E3A;&#xFF1A;<code>&lt;div class=&quot;dropdown&quot;&gt;&lt;/div&gt;</code></li>
<li>&#x4F7F;&#x7528;&#x4E86;&#x4E00;&#x4E2A;<code>&lt;button&gt;</code>&#x6309;&#x94AE;&#x505A;&#x4E3A;&#x7236;&#x83DC;&#x5355;&#xFF0C;&#x5E76;&#x4E14;&#x5B9A;&#x4E49;&#x7C7B;&#x540D;<code>.dropdown-toggle</code>&#x548C;&#x81EA;&#x5B9A;&#x4E49;<code>data-toggle</code>&#x5C5E;&#x6027;&#xFF0C;&#x4E14;&#x503C;&#x5FC5;&#x987B;&#x548C;&#x6700;&#x5916;&#x5BB9;&#x5668;&#x7C7B;&#x540D;&#x4E00;&#x81F4;&#xFF0C;&#x6B64;&#x793A;&#x4F8B;&#x4E3A;&#xFF1A;<code>data-toggle=&quot;dropdown&quot;</code></li>
<li>&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x9879;&#x4F7F;&#x7528;&#x4E00;&#x4E2A;ul&#x5217;&#x8868;&#xFF0C;&#x5E76;&#x4E14;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x7C7B;&#x540D;&#x4E3A;<code>.dropdown-menu</code>&#xFF0C;&#x6B64;&#x793A;&#x4F8B;&#x4E3A;&#xFF1A;<code>&lt;ul class=&quot;dropdown-menu&quot;&gt;</code></li>
</ol>
<p>&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x6211;&#x4EEC;&#x4EC5;&#x4EC5;&#x9700;&#x8981;&#x7262;&#x8BB0;&#x8FD9;3&#x4E2A;&#x6B65;&#x9AA4;&#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x4F7F;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x751F;&#x6548;&#xFF0C;<code>&lt;button&gt;</code>&#x5185;&#x7684;<code>&lt;span&gt;</code>&#x6807;&#x7B7E;&#xFF0C;&#x4E5F;&#x4EC5;&#x4EC5;&#x662F;&#x7528;&#x6765;&#x8FDB;&#x884C;&#x56FE;&#x6807;&#x7684;&#x5C55;&#x793A;&#xFF0C;&#x8BA9;&#x83DC;&#x5355;&#x66F4;&#x52A0;&#x6E05;&#x6670;&#x3002;&#x4E0D;&#x8FC7;&#x867D;&#x7136;&#x5982;&#x6B64;&#xFF0C;&#x6211;&#x5EFA;&#x8BAE;&#x5728;<strong>&#x5B9E;&#x9645;&#x7684;&#x4F7F;&#x7528;&#x8FC7;&#x7A0B;</strong>&#x4E2D;&#xFF0C;&#x628A;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x7684;<strong>&#x5176;&#x5B83;&#x5C5E;&#x6027;&#x4E5F;&#x4E00;&#x5E76;&#x52A0;&#x4E0A;</strong>&#xFF0C;&#x8FD9;&#x6837;&#x66F4;&#x52A0;&#x53CB;&#x597D;&#x7684;&#x4E3A;&#x4E0D;&#x540C;&#x7684;&#x5BA2;&#x6237;&#x5982;&#xFF1A;<strong>&#x5C4F;&#x5E55;&#x9605;&#x8BFB;&#x5668;</strong> &#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x4F18;&#x8D28;&#x7684;&#x4F53;&#x9A8C;&#x3002;</p>
<p>&#x90A3;&#x4E48;&#x8FD9;&#x4E9B;&#x662F;&#x600E;&#x4E48;&#x8D77;&#x4F5C;&#x7528;&#x7684;&#x5462;&#xFF1F;</p>
<p>&#x67E5;&#x770B;CSS&#x6E90;&#x7801;&#x53EF;&#x4EE5;&#x770B;&#x5230;<code>.dropdown-menu</code>&#x6709;&#x4E00;&#x4E2A;<code>display:none</code>&#xFF0C;&#x6240;&#x4EE5;&#x4E0B;&#x62C9;&#x5217;&#x8868;&#x9879;&#x9ED8;&#x8BA4;&#x9690;&#x85CF;&#x7684;&#xFF1B;&#x6211;&#x4EEC;&#x7EE7;&#x7EED;&#x6253;&#x5F00;chrome&#x5F00;&#x53D1;&#x8005;&#x5DE5;&#x5177;&#xFF08;F12&#xFF09;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6BCF;&#x4E00;&#x6B21;&#x5728;&#x5217;&#x8868;&#x9879;&#x5C55;&#x73B0;&#x51FA;&#x6765;&#x65F6;&#xFF0C;<code>.dropdown</code>&#x7C7B;&#x540E;&#x8FD8;&#x589E;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;<code>.open</code>&#x7684;&#x7C7B;&#xFF1B;&#x4E0D;&#x7528;&#x591A;&#x8BF4;&#x60F3;&#x80AF;&#x5B9A;&#x5C31;&#x662F;&#x8FD9;&#x4E2A;&#x7C7B;&#x5728;&#x8D77;&#x4F5C;&#x7528;&#xFF0C;&#x6211;&#x4EEC;&#x518D;&#x7EE7;&#x7EED;&#x56DE;&#x5230;CSS&#x6E90;&#x7801;&#x4E2D;&#x53BB;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.open</span> &gt; <span class="hljs-selector-class">.dropdown-menu</span> {
  <span class="hljs-attribute">display</span>: block;
}
</code></pre>
<p>&#x770B;&#x5230;&#x8FD9;&#x91CC;&#x4E5F;&#x5E94;&#x8BE5;&#x4E0D;&#x7528;&#x8FC7;&#x591A;&#x8BF4;&#x660E;&#x4E86;&#xFF0C;&#x6DFB;&#x52A0;&#x4E86;&#x8FD9;&#x4E2A;<code>.open</code>&#x7C7B;&#x65F6;&#xFF0C;<code>.dropdown-menu</code>&#x81EA;&#x7136;&#x7684;&#x5C31;&#x663E;&#x793A;&#x51FA;&#x6765;&#x4E86;&#x3002;</p>
<h3 id="2-&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x4FEE;&#x9970;">2. &#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x4FEE;&#x9970;</h3>
<h4 id="21-&#x4E0B;&#x62C9;&#x5206;&#x9694;&#x7EBF;">2.1 &#x4E0B;&#x62C9;&#x5206;&#x9694;&#x7EBF;</h4>
<p>&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x8FD8;&#x63D0;&#x4F9B;&#x4E86;&#x4E0B;&#x62C9;&#x5206;&#x9694;&#x7EBF;&#xFF0C;&#x5047;&#x8BBE;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x6709;&#x4E24;&#x4E2A;&#x7EC4;&#xFF0C;&#x90A3;&#x4E48;&#x7EC4;&#x4E0E;&#x7EC4;&#x4E4B;&#x95F4;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x7A7A;&#x7684;<code>&lt;li&gt;</code>&#xFF0C;&#x5E76;&#x4E14;&#x7ED9;&#x8FD9;&#x4E2A;<code>&lt;li&gt;</code>&#x6DFB;&#x52A0;&#x7C7B;&#x540D;<code>.divider</code>&#x6765;&#x5B9E;&#x73B0;&#x6DFB;&#x52A0;&#x4E0B;&#x62C9;&#x5206;&#x9694;&#x7EBF;&#x7684;&#x529F;&#x80FD;&#x3002;<code>&lt;li class=&quot;divider&quot;&gt;&lt;/li&gt;</code>&#x5BF9;&#x5E94;&#x7684;&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.dropdown-menu</span> <span class="hljs-selector-class">.divider</span> {
  <span class="hljs-attribute">height</span>: <span class="hljs-number">1px</span>;
  <span class="hljs-attribute">margin</span>: <span class="hljs-number">9px</span> <span class="hljs-number">0</span>;
  <span class="hljs-attribute">overflow</span>: hidden;
  <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#e5e5e5</span>;
}
</code></pre>
<h4 id="22-&#x83DC;&#x5355;&#x6807;&#x9898;">2.2 &#x83DC;&#x5355;&#x6807;&#x9898;</h4>
<p>&#x4E0A;&#x4E00;&#x5C0F;&#x8282;&#x8BB2;&#x89E3;&#x901A;&#x8FC7;&#x6DFB;&#x52A0;<code>divider</code>&#x53EF;&#x4EE5;&#x5C06;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x5206;&#x7EC4;&#xFF0C;&#x4E3A;&#x4E86;&#x8BA9;&#x8FD9;&#x4E2A;&#x5206;&#x7EC4;&#x66F4;&#x660E;&#x663E;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x7ED9;&#x6BCF;&#x4E2A;&#x7EC4;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x5934;&#x90E8;&#xFF08;&#x6807;&#x9898;&#xFF09;&#xFF1A;<code>&lt;li class=&quot;dropdown-header&quot;&gt;</code>&#x7B2C;&#x4E00;&#x90E8;&#x5206;&#x83DC;&#x5355;&#x5934;&#x90E8;<code>&lt;/li&gt;</code>&#x3002;</p>
<p>&#x4ECE;&#x6E90;&#x7801;&#x4E2D;&#x6BD4;&#x8F83;&#x5173;&#x952E;&#x7684;&#x4E24;&#x4E2A;&#x70B9;&#x662F;&#xFF1A;&#x6807;&#x9898;&#x7684;&#x5B57;&#x4F53;&#x989C;&#x8272;&#x662F;&#xFF1A;<code>color: #777;</code>&#xFF0C;&#x8FD8;&#x6709;&#x5185;&#x586B;&#x5145;<code>padding: 3px 20px;</code></p>
<h3 id="23-&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;">2.3 &#x5BF9;&#x9F50;&#x65B9;&#x5F0F;</h3>
<p>Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x4E0B;&#x62C9;&#x83DC;&#x5355;<strong>&#x9ED8;&#x8BA4;&#x662F;&#x5DE6;&#x5BF9;&#x9F50;</strong>&#x4E5F;&#x5C31;&#x662F;&#x6DFB;&#x52A0;.dropdown-menu-left&#x7C7B;&#x6240;&#x80FD;&#x8FBE;&#x5230;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8BA9;&#x4E0B;&#x62C9;&#x83DC;&#x5355;<strong>&#x76F8;&#x5BF9;&#x4E8E;&#x7236;&#x5BB9;&#x5668;&#x53F3;&#x5BF9;&#x9F50;</strong>&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;<code>.dropdown-menu</code>&#x4E0A;&#xFF08;&#x4E5F;&#x5C31;&#x662F;&#x4F60;&#x7684;&#x83DC;&#x5355;&#x9879;&#x7684;ul&#xFF09;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;<code>.pull-right</code>&#x6216;&#x8005;<code>.dropdown-menu-right</code>&#x7C7B;&#x540D;&#xFF0C;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;<code>&lt;ul class=&quot;dropdown-menu pull-right&quot; &gt;</code>
&#x6E90;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.dropdown-menu</span><span class="hljs-selector-class">.pull-right</span>,
<span class="hljs-selector-class">.dropdown-menu-right</span> {<span class="hljs-comment">/*&#x4E24;&#x4E2A;&#x7C7B;&#x81EA;&#x9009;*/</span>
  <span class="hljs-attribute">right</span>: <span class="hljs-number">0</span>;
  <span class="hljs-attribute">left</span>: auto;
}
</code></pre>
<p>&#x5F53;&#x7136;&#x4F60;&#x53EA;&#x8FDB;&#x884C;&#x8FD9;&#x6837;&#x7684;&#x8BBE;&#x7F6E;&#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x80FD;&#x8FD8;&#x4F1A;&#x6709;&#x4E00;&#x4E9B;&#x5947;&#x602A;&#x7684;&#x60C5;&#x51B5;&#x51FA;&#x73B0;&#xFF0C;&#x6BD4;&#x5982;&#x5217;&#x8868;&#x9879;&#x8DD1;&#x5230;&#x5C4F;&#x5E55;&#x6700;&#x53F3;&#x8FB9;&#x53BB;&#x4E86;&#xFF0C;&#x6240;&#x4EE5;&#x540C;&#x65F6;&#x4E00;&#x5B9A;&#x8981;&#x4E3A;<code>.dropdown</code>&#x6DFB;&#x52A0;<code>float:left</code>&#x6837;&#x5F0F;&#x3002;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.dropdown</span>{
  <span class="hljs-attribute">float</span>: left;
}
</code></pre>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-04-dropdown-2.jpg" alt="&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#xFF08;&#x53F3;&#x5BF9;&#x9F50;&#xFF09;"></p>
<h4 id="24-&#x83DC;&#x5355;&#x9879;&#x72B6;&#x6001;">2.4 &#x83DC;&#x5355;&#x9879;&#x72B6;&#x6001;</h4>
<p>&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x9879;&#x7684;&#x9ED8;&#x8BA4;&#x7684;&#x72B6;&#x6001;&#xFF08;&#x4E0D;&#x7528;&#x8BBE;&#x7F6E;&#xFF09;&#x6709;&#x60AC;&#x6D6E;&#x72B6;&#x6001;&#xFF08;:hover&#xFF09;&#x548C;&#x7126;&#x70B9;&#x72B6;&#x6001;&#xFF08;:focus&#xFF09;&#xFF1A;&#xFF08;&#x5305;&#x62EC;&#x4E0B;&#x9762;&#x63D0;&#x5230;&#x7684;&#x72B6;&#x6001;&#x90FD;&#x5FC5;&#x987B;&#x5728;li&#x4E2D;&#x5305;&#x542B;a&#x6807;&#x7B7E;&#x624D;&#x6709;- -&#xFF09;</p>
<p>&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x9879;&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x4E24;&#x79CD;&#x72B6;&#x6001;&#xFF0C;&#x8FD8;&#x6709;&#x5F53;&#x524D;&#x72B6;&#x6001;&#xFF08;.active&#xFF09;&#x548C;&#x7981;&#x7528;&#x72B6;&#x6001;&#xFF08;.disabled&#xFF09;&#x3002;&#x8FD9;&#x4E24;&#x79CD;&#x72B6;&#x6001;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x53EA;&#x9700;&#x8981;&#x5728;&#x5BF9;&#x5E94;&#x7684;&#x83DC;&#x5355;&#x9879;&#x4E0A;&#x6DFB;&#x52A0;&#x5BF9;&#x5E94;&#x7684;&#x7C7B;&#x540D;&#x5982;&#xFF1A;<li class="disabled"><a href="#">&#x6843;</a></li></p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x4E0B;&#x9762;&#x8FD9;&#x6837;&#x7684;&#x6548;&#x679C;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-080400.jpg" alt="&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#xFF08;&#x53F3;&#x5BF9;&#x9F50;&#xFF09;"></p>
<hr>
<h2 id="&#x4E8C;&#x3001;&#x6309;&#x94AE;">&#x4E8C;&#x3001;&#x6309;&#x94AE;</h2>
<h3 id="1-&#x6309;&#x94AE;&#x7EC4;&#x53CA;&#x5DE5;&#x5177;&#x680F;">1. &#x6309;&#x94AE;&#x7EC4;&#x53CA;&#x5DE5;&#x5177;&#x680F;</h3>
<p>&#x5355;&#x4E2A;&#x6309;&#x94AE;&#x7684;&#x8FD0;&#x7528;&#x6709;&#x65F6;&#x5019;&#x5E76;&#x4E0D;&#x80FD;&#x6EE1;&#x8DB3;&#x6211;&#x4EEC;&#x7684;&#x4E1A;&#x52A1;&#x9700;&#x6C42;&#xFF0C;&#x5E38;&#x5E38;&#x4F1A;&#x770B;&#x5230;&#x591A;&#x4E2A;&#x6309;&#x94AE;&#x7EC4;&#x5408;&#x4F7F;&#x7528;&#xFF0C;&#x6BD4;&#x5982;&#x5BCC;&#x6587;&#x672C;&#x7F16;&#x8F91;&#x5668;&#x91CC;&#x7684;&#x4E00;&#x7EC4;&#x5C0F;&#x56FE;&#x6807;&#x6309;&#x94AE;&#x7B49;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x7ED3;&#x6784;&#x65B9;&#x9762;&#xFF0C;&#x975E;&#x5E38;&#x7684;&#x7B80;&#x5355;&#x3002;&#x4F7F;&#x7528;&#x4E00;&#x4E2A;&#x540D;&#x4E3A;<code>.btn-group</code>&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x628A;&#x591A;&#x4E2A;&#x6309;&#x94AE;&#x653E;&#x5230;&#x8FD9;&#x4E2A;&#x5BB9;&#x5668;&#x4E2D;&#x3002;&#x5982;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn-group&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x5DE6;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-danger&quot;</span>&gt;</span>&#x4E2D;&#x95F4;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x53F3;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x5982;&#x4F55;&#x8F6C;&#x5316;&#x6210;&#x5DE5;&#x5177;&#x680F;&#x5462;&#xFF1F;&#x53EA;&#x9700;&#x8981;&#x518D;&#x7528;&#x4E00;&#x4E2A;<code>.btn-toolbar</code>&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x5C06;&#x6211;&#x4EEC;&#x7684;<code>.btn-group</code>&#x518D;&#x8FDB;&#x884C;&#x4E00;&#x6B21;&#x5305;&#x88F9;&#xFF0C;&#x540C;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>.btn-group-lg</code>&#x5927;&#x6309;&#x94AE;&#x7EC4;&#x3001;<code>.btn-group-xs</code>:&#x8D85;&#x5C0F;&#x6309;&#x94AE;&#x7EC4;&#x8FD9;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x7C7B;&#x6DFB;&#x52A0;&#x5230;<code>.btn-group</code>&#x5BB9;&#x5668;&#x6765;&#x8FDB;&#x884C;&#x5BF9;&#x4E00;&#x7EC4;&#x6309;&#x94AE;&#x8FDB;&#x884C;&#x5927;&#x5C0F;&#x63A7;&#x5236;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>= &quot;<span class="hljs-attr">btn-toolbar</span>&quot;&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x2026;&#x2026; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>= &quot;<span class="hljs-attr">btn-group</span> &quot;&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x5DE6;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-danger&quot;</span>&gt;</span>&#x4E2D;&#x95F4;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x53F3;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>= &quot;<span class="hljs-attr">btn-group</span> <span class="hljs-attr">btn-group-sm</span>&quot;&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x5DE6;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-danger&quot;</span>&gt;</span>&#x4E2D;&#x95F4;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x5411;&#x53F3;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x2026;&#x2026; --&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x4E0A;&#x9762;&#x4E24;&#x6BB5;&#x4EE3;&#x7801;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-080700.jpg" alt="&#x6309;&#x94AE;&#x7EC4;&#x53CA;&#x5DE5;&#x5177;&#x680F;"></p>
<h3 id="2-&#x5D4C;&#x5957;&#x5206;&#x7EC4;">2. &#x5D4C;&#x5957;&#x5206;&#x7EC4;</h3>
<p>&#x8FD9;&#x91CC;&#x7684;&#x5D4C;&#x5957;&#x5206;&#x7EC4;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x5728;&#x5206;&#x7EC4;&#x6309;&#x94AE;&#x4E2D;&#x5D4C;&#x5957;&#x4E86;&#x4E00;&#x4E2A;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x3002;&#x4F7F;&#x7528;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x628A;&#x5F53;&#x521D;&#x5236;&#x4F5C;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x7684;<code>.dropdown</code>&#x7684;&#x5BB9;&#x5668;&#x6362;&#x6210;<code>.btn-group</code>&#xFF0C;&#x5E76;&#x4E14;&#x548C;&#x666E;&#x901A;&#x7684;&#x6309;&#x94AE;&#x653E;&#x5728;&#x540C;&#x4E00;&#x7EA7;&#x3002;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn-group&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span>&gt;</span>&#x9996;&#x9875;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn-group&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default dropdown-toggle&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;dropdown&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span>&gt;</span>&#x4EA7;&#x54C1;&#x5C55;&#x793A;<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;caret&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-menu&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>&#x516C;&#x53F8;&#x7B80;&#x4ECB;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>&#x4F01;&#x4E1A;&#x6587;&#x5316;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>&#x5BA2;&#x670D;&#x670D;&#x52A1;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span>&gt;</span>&#x5173;&#x4E8E;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x5F53;&#x7136;&#x6211;&#x4EEC;&#x8FD8;&#x53EF;&#x4EE5;&#x4ECE;&#x6C34;&#x5E73;&#x6309;&#x94AE;&#x7EC4;&#x53D8;&#x6210;&#x5782;&#x76F4;&#x5206;&#x7EC4;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x6C34;&#x5E73;&#x5206;&#x7EC4;&#x7684;&#x6700;&#x5916;&#x5C42;&#x5BB9;&#x5668;&#x7684;&#x7C7B;&#x540D;<code>.btn-group</code>&#x66FF;&#x6362;&#x6210;<code>.btn-group-vertical</code>&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x5782;&#x76F4;&#x5206;&#x7EC4;&#x7684;&#x6548;&#x679C;&#x3002;</p>
<p>&#x6309;&#x94AE;&#x7684;&#x5411;&#x4E0B;&#x5411;&#x4E0A;&#x4E09;&#x89D2;&#x5F62;</p>
<p>&#x6211;&#x4EEC;&#x5728;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x548C;&#x5D4C;&#x5957;&#x5206;&#x7EC4;&#x90FD;&#x90FD;&#x770B;&#x5230;&#x4E86;&#x4E00;&#x4E2A;&#x6309;&#x94AE;&#x7684;&#x5411;&#x4E0B;&#x4E09;&#x89D2;&#x5F62;&#xFF0C;&#x6211;&#x4EEC;&#x662F;&#x901A;&#x8FC7;&#x5728;<code>&lt;button&gt;</code>&#x6807;&#x7B7E;&#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;<code>&lt;span&gt;</code>&#x6807;&#x7B7E;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x547D;&#x540D;&#x4E3A;caret&#xFF0C;&#x8FD9;&#x4E2A;&#x4E09;&#x89D2;&#x5F62;&#x5B8C;&#x5168;&#x662F;&#x901A;&#x8FC7;CSS&#x4EE3;&#x7801;&#x6765;&#x5B9E;&#x73B0;&#x7684;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.caret</span> {
    <span class="hljs-attribute">display</span>: inline-block;
    <span class="hljs-attribute">width</span>: <span class="hljs-number">0</span>;
    <span class="hljs-attribute">height</span>: <span class="hljs-number">0</span>;
    <span class="hljs-attribute">margin-left</span>: <span class="hljs-number">2px</span>;
    <span class="hljs-attribute">vertical-align</span>: middle;
    <span class="hljs-attribute">border-top</span>: <span class="hljs-number">4px</span> solid;
    <span class="hljs-attribute">border-right</span>: <span class="hljs-number">4px</span> solid transparent;
    <span class="hljs-attribute">border-left</span>: <span class="hljs-number">4px</span> solid transparent;
}
</code></pre>
<p>&#x6709;&#x7684;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x7684;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x4F1A;&#x5411;&#x4E0A;&#x5F39;&#x8D77;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x7684;&#x4E09;&#x89D2;&#x65B9;&#x5411;&#x9700;&#x8981;&#x671D;&#x4E0A;&#x663E;&#x793A;&#xFF0C;&#x5B9E;&#x73B0;&#x65B9;&#x6CD5;&#xFF1A;&#x9700;&#x8981;&#x5728;<code>.btn-group</code>&#x7C7B;&#x4E0A;&#x8FFD;&#x52A0;<code>dropup</code>&#x7C7B;&#x540D;&#xFF08;&#x8FD9;&#x4E5F;&#x662F;&#x505A;&#x5411;&#x4E0A;&#x5F39;&#x8D77;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x8981;&#x7528;&#x7684;&#x7C7B;&#x540D;&#xFF09;&#x3002;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.dropup</span> <span class="hljs-selector-class">.caret</span>{  
    <span class="hljs-attribute">content</span>: <span class="hljs-string">&quot;&quot;</span>;
    <span class="hljs-attribute">border-top</span>: <span class="hljs-number">0</span>;<span class="hljs-comment">/*&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x8FD9;&#x91CC;top&#x4E0E;bottom&#x7684;&#x53D8;&#x5316;*/</span>
    <span class="hljs-attribute">border-bottom</span>: <span class="hljs-number">4px</span> solid;
}
</code></pre>
<p>&#x90A3;&#x4E48;&#x73B0;&#x5728;&#x5C31;&#x6765;&#x5BF9;&#x6BD4;&#x4E00;&#x4E0B;&#xFF0C;&#x4E0A;&#x9762;&#x4EE3;&#x7801;&#x4EE5;&#x53CA;&#x7C7B;&#x7684;&#x6DFB;&#x52A0;&#x53EF;&#x4EE5;&#x8FBE;&#x5230;&#x7684;&#x4E0D;&#x540C;&#x6548;&#x679C;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-080903.jpg" alt="&#x5D4C;&#x5957;&#x5206;&#x7EC4;&#x3001;&#x5782;&#x76F4;&#x3001;&#x5411;&#x4E0A;&#x5C55;&#x5F00;"></p>
<hr>
<h2 id="&#x4E09;&#x3001;&#x5BFC;&#x822A;">&#x4E09;&#x3001;&#x5BFC;&#x822A;</h2>
<p>&#x53EF;&#x4EE5;&#x8BF4;&#xFF0C;&#x6BCF;&#x4E00;&#x4E2A;&#x7F51;&#x9875;&#x91CC;&#x9762;&#x90FD;&#x4F1A;&#x6709;&#x5BFC;&#x822A;&#x7684;&#x5B58;&#x5728;&#xFF0C;&#x4FBF;&#x4E8E;&#x7528;&#x6237;&#x67E5;&#x627E;&#x7F51;&#x7AD9;&#x6240;&#x63D0;&#x4F9B;&#x7684;&#x5404;&#x9879;&#x529F;&#x80FD;&#x670D;&#x52A1;&#x3002;&#x90A3;&#x4E48;&#x5982;&#x4F55;&#x4F7F;&#x7528;Bootstrap&#x6846;&#x67B6;&#x5236;&#x4F5C;&#x5404;&#x5F0F;&#x5404;&#x6837;&#x7684;&#x5BFC;&#x822A;&#x5462;&#xFF1F;</p>
<h3 id="1-&#x57FA;&#x7840;&#x6837;&#x5F0F;">1. &#x57FA;&#x7840;&#x6837;&#x5F0F;</h3>
<p>Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x5236;&#x4F5C;&#x5BFC;&#x822A;&#x6761;&#x4E3B;&#x8981;&#x901A;&#x8FC7;<code>.nav</code>&#x6837;&#x5F0F;&#x3002;&#x9ED8;&#x8BA4;&#x7684;<code>.nav</code>&#x6837;&#x5F0F;&#x4E0D;&#x63D0;&#x4F9B;&#x9ED8;&#x8BA4;&#x7684;&#x5BFC;&#x822A;&#x6837;&#x5F0F;&#xFF0C;&#x5FC5;&#x987B;&#x9644;&#x52A0;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x6837;&#x5F0F;&#x624D;&#x4F1A;&#x6709;&#x6548;&#xFF0C;&#x6BD4;&#x5982;n<code>av-tabs&#x3001;nav-pills</code>&#x4E4B;&#x7C7B;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav nav-tabs&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>HTML5<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>JavaScript<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x5F53;&#x7136;&#x4ED6;&#x4EEC;&#x540C;&#x6837;&#x4E5F;&#x6709;&#x5F53;&#x524D;&#x72B6;&#x6001;&#xFF08;.active&#xFF09;&#x548C;&#x7981;&#x7528;&#x72B6;&#x6001;&#xFF08;.disabled&#xFF09;&#xFF0C;&#x6211;&#x4EEC;&#x7ED9;&#x7B2C;&#x4E00;&#x4E2A;&#x5BFC;&#x822A;&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x72B6;&#x6001;&#xFF0C;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5BFC;&#x822A;&#x6DFB;&#x52A0;&#x7981;&#x7528;&#x72B6;&#x6001;&#xFF0C;&#x5B9E;&#x73B0;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-081238.jpg" alt="&#x5BFC;&#x822A;-&#x57FA;&#x7840;&#x6837;&#x5F0F;"></p>
<h3 id="2-&#x4FEE;&#x9970;">2. &#x4FEE;&#x9970;</h3>
<h4 id="21-&#x5782;&#x76F4;&#x5806;&#x53E0;&#x7684;&#x5BFC;&#x822A;">2.1 &#x5782;&#x76F4;&#x5806;&#x53E0;&#x7684;&#x5BFC;&#x822A;</h4>
<p>&#x5728;&#x5B9E;&#x9645;&#x8FD0;&#x7528;&#x5F53;&#x4E2D;&#xFF0C;&#x9664;&#x4E86;&#x6C34;&#x5E73;&#x5BFC;&#x822A;&#x4E4B;&#x5916;&#xFF0C;&#x8FD8;&#x6709;&#x5782;&#x76F4;&#x5BFC;&#x822A;&#xFF0C;&#x5C31;&#x7C7B;&#x4F3C;&#x524D;&#x9762;&#x4ECB;&#x7ECD;&#x7684;&#x5782;&#x76F4;&#x6392;&#x5217;&#x6309;&#x94AE;&#x4E00;&#x6837;&#x3002;&#x5236;&#x4F5C;&#x5782;&#x76F4;&#x5806;&#x53E0;&#x5BFC;&#x822A;&#x53EA;&#x9700;&#x8981;&#x5728;<code>.nav-pills</code>&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;<code>.nav-stacke</code>d&#x7C7B;&#x540D;&#x5373;&#x53EF;&#xFF0C;&#x540C;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x548C;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#x4E00;&#x6837;&#xFF0C;&#x540C;&#x6837;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x7EC4;&#x4E4B;&#x95F4;&#x7684;&#x5206;&#x5272;&#x7EBF;&#x4F8B;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x5BFC;&#x822A;&#x9879;&#x4E4B;&#x95F4;&#x6DFB;&#x52A0;<code>&lt;li class=&#x201D;nav-divider&#x201D;&gt;&lt;/li&gt;</code>,&#x5982;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav nav-pills nav-stacked&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>HTML5<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav-divider&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;disabled&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>JavaScript<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x590D;&#x5236;&#x5230;CODEPEN&#x4E2D;&#x770B;&#x770B;&#x6548;&#x679C;&#x5427;&#xFF01;</p>
<p>&#x4F60;&#x5E94;&#x8BE5;&#x5DF2;&#x7ECF;&#x53D1;&#x73B0;&#x4E86;&#x5728;&#x5782;&#x76F4;&#x5BFC;&#x822A;&#x4E2D;&#xFF0C;&#x6BCF;&#x4E00;&#x4E2A;&#x5BFC;&#x822A;&#x9879;&#x90FD;&#x662F;&#x5360;&#x6587;&#x5B57;&#x5C45;&#x5DE6;&#xFF0C;&#x5360;100%&#x7684;&#x7236;&#x5BB9;&#x5668;&#x5BBD;&#x5EA6;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x60F3;&#x6709;&#x54CD;&#x5E94;&#x5F0F;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x5E94;&#x8BE5;&#x548C;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x4E00;&#x8D77;&#x4F7F;&#x7528;&#xFF0C;&#x53E6;&#x5916;&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x8BD5;&#x8BD5;&#x4F7F;&#x7528;nav-tabs&#x6765;&#x5B9E;&#x73B0;&#x5782;&#x76F4;&#x5BFC;&#x822A;&#x5462;&#xFF1F;&#x770B;&#x770B;&#x6548;&#x679C;&#xFF0C;&#x4F60;&#x5C31;&#x4F1A;&#x660E;&#x767D;&#x4E3A;&#x4EC0;&#x4E48;&#x4E0D;&#x4F7F;&#x7528;&#x4E86;&#x3002;</p>
<h4 id="22-&#x81EA;&#x9002;&#x5E94;&#x5BFC;&#x822A;">2.2 &#x81EA;&#x9002;&#x5E94;&#x5BFC;&#x822A;</h4>
<p>&#x81EA;&#x9002;&#x5E94;&#x5BFC;&#x822A;&#x548C;&#x524D;&#x9762;&#x5236;&#x4F5C;&#x81EA;&#x9002;&#x5E94;&#x6309;&#x94AE;&#x662F;&#x4E00;&#x6837;&#x7684;&#xFF0C;&#x4E0D;&#x8FC7;&#x66F4;&#x6362;&#x4E86;&#x4E00;&#x4E2A;&#x7C7B;&#x540D;&#xFF0C;<code>.nav-justified</code>&#x3002;&#x5F53;&#x7136;&#x4ED6;&#x9700;&#x8981;&#x548C;<code>.nav-tabs</code>&#x6216;&#x8005;<code>.nav-pills</code>&#x914D;&#x5408;&#x5728;&#x4E00;&#x8D77;&#x4F7F;&#x7528;&#x3002; &#x5B83;&#x662F;&#x54CD;&#x5E94;&#x5F0F;&#x7684;&#xFF0C;&#x5728;&#x5BBD;&#x5EA6;&#x8DB3;&#x591F;&#x65F6;&#xFF0C;&#x7ED9;&#x591A;&#x4E2A;&#x5BFC;&#x822A;&#x9879;&#xFF0C;&#x5747;&#x5206;&#x7A7A;&#x95F4;&#xFF1B;&#x5728;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;&#x4E34;&#x754C;&#x503C;&#xFF08;768px&#xFF09;&#x65F6;&#xFF0C;&#x5B83;&#x4F1A;&#x548C;&#x5782;&#x76F4;&#x5BFC;&#x822A;&#x4E00;&#x6837;&#xFF1A;&#x6BCF;&#x4E00;&#x9879;&#x90FD;&#x5145;&#x6EE1;&#x7236;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#xFF0C;&#x4E0D;&#x540C;&#x7684;&#x662F;&#xFF0C;&#x4ED6;&#x7684;&#x6587;&#x5B57;&#x662F;&#x5C45;&#x4E2D;&#x663E;&#x793A;&#x7684;</p>
<h4 id="23-&#x5BFC;&#x822A;&#x4E2D;&#x52A0;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#xFF08;&#x4E8C;&#x7EA7;&#x5BFC;&#x822A;&#xFF09;">2.3 &#x5BFC;&#x822A;&#x4E2D;&#x52A0;&#x4E0B;&#x62C9;&#x83DC;&#x5355;&#xFF08;&#x4E8C;&#x7EA7;&#x5BFC;&#x822A;&#xFF09;</h4>
<p>&#x524D;&#x9762;&#x4ECB;&#x7ECD;&#x7684;&#x90FD;&#x662F;&#x4F7F;&#x7528;&#x5236;&#x4F5C;&#x4E00;&#x7EA7;&#x5BFC;&#x822A;&#xFF0C;&#x4F46;&#x5F88;&#x591A;&#x65F6;&#x5019;&#xFF0C;&#x5728;Web&#x9875;&#x9762;&#x5E38;&#x5E38;&#x4F1A;&#x7528;&#x5230;&#x4E8C;&#x7EA7;&#x5BFC;&#x822A;&#x7684;&#x6548;&#x679C;&#x3002;
&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x5236;&#x4F5C;&#x4E8C;&#x7EA7;&#x5BFC;&#x822A;&#x5C31;&#x66F4;&#x5BB9;&#x6613;&#x4E86;&#x3002;&#x53EA;&#x9700;&#x8981;&#x5C06;li&#x5F53;&#x4F5C;&#x7236;&#x5BB9;&#x5668;&#xFF0C;&#x4F7F;&#x7528;&#x7C7B;&#x540D;<code>.dropdown</code>&#xFF0C;&#x540C;&#x65F6;&#x5728;<strong><code>li</code>&#x4E2D;&#x5D4C;&#x5957;&#x53E6;&#x4E00;&#x4E2A;&#x5217;&#x8868;<code>ul</code></strong></p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav nav-pills&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> &gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>HTML5<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-toggle&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;dropdown&quot;</span>&gt;</span>JavaScript<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;caret&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-menu&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>JQuery<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span>&gt;</span>Vue<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            &#x2026;
       <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x4E0E;&#x4E0A;&#x9762;&#x7684;&#x5D4C;&#x5957;&#x6309;&#x94AE;&#x6548;&#x679C;&#x4E00;&#x81F4;&#x3002;</p>
<h4 id="24-&#x9762;&#x5305;&#x5C51;&#x5F0F;&#x5BFC;&#x822A;">2.4 &#x9762;&#x5305;&#x5C51;&#x5F0F;&#x5BFC;&#x822A;</h4>
<p>&#x9762;&#x5305;&#x5C51;(Breadcrumb)&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x5BFC;&#x822A;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x8D77;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x544A;&#x8BC9;&#x7528;&#x6237;&#x73B0;&#x5728;&#x6240;&#x5904;&#x9875;&#x9762;&#x7684;&#x4F4D;&#x7F6E;&#xFF08;&#x5F53;&#x524D;&#x4F4D;&#x7F6E;&#xFF09;&#x3002;&#x4E00;&#x822C;&#x5728;&#x6587;&#x7AE0;&#x3001;&#x535A;&#x5BA2;&#x3001;&#x5217;&#x8868;&#x5904;&#x7528;&#x7684;&#x6BD4;&#x8F83;&#x591A;&#xFF0C;&#x9700;&#x8981;&#x7528;&#x5230;<code>.breadcrumb</code>&#x7C7B;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ol</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;breadcrumb&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x4E2A;&#x4EBA;&#x9996;&#x9875;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x6807;&#x7B7E;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span>Bootstrap<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ol</span>&gt;</span>
</code></pre>
<p>&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x7684;&#x6548;&#x679C;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-081554.jpg" alt="&#x5BFC;&#x822A;-&#x9762;&#x5305;&#x5C51;"></p>
<hr>
<h2 id="&#x56DB;&#x3001;&#x5BFC;&#x822A;&#x6761;">&#x56DB;&#x3001;&#x5BFC;&#x822A;&#x6761;</h2>
<p>&#x5BFC;&#x822A;&#x6761;&#xFF08;navbar&#xFF09;&#x548C;&#x6211;&#x4EEC;&#x5728;&#x4E0A;&#x4E00;&#x4E2A;&#x7B14;&#x8BB0;&#x4E2D;&#x4ECB;&#x7ECD;&#x7684;&#x5BFC;&#x822A;&#xFF08;nav&#xFF09;&#x76F8;&#x6BD4;&#xFF0C;&#x5C31;&#x591A;&#x4E86;&#x4E00;&#x4E2A;&#x201C;&#x6761;&#x201D;&#x5B57;&#x3002;&#x5176;&#x5B9E;&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x4ED6;&#x4EEC;&#x6709;&#x7740;&#x4E00;&#x5B9A;&#x7684;&#x533A;&#x522B;&#x3002;
&#x5728;&#x5BFC;&#x822A;&#x6761;(navbar)&#x4E2D;&#x6709;&#x4E00;&#x4E2A;&#x80CC;&#x666F;&#x8272;&#x3001;&#x800C;&#x4E14;&#x5BFC;&#x822A;&#x6761;&#x53EF;&#x4EE5;&#x662F;&#x7EAF;&#x94FE;&#x63A5;&#xFF08;&#x7C7B;&#x4F3C;&#x5BFC;&#x822A;&#xFF09;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x8868;&#x5355;&#xFF0C;&#x8FD8;&#x6709;&#x5C31;&#x662F;&#x8868;&#x5355;&#x548C;&#x5BFC;&#x822A;&#x4E00;&#x8D77;&#x7ED3;&#x5408;&#x7B49;&#x591A;&#x79CD;&#x5F62;&#x5F0F;&#x3002;&#x5B83;&#x4EEC;&#x5728;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x4E0A;&#x53EF;&#x4EE5;&#x6298;&#x53E0;&#xFF08;&#x5E76;&#x4E14;&#x53EF;&#x5F00;&#x53EF;&#x5173;&#xFF09;&#xFF0C;&#x4E14;&#x5728;&#x89C6;&#x53E3;&#xFF08;viewport&#xFF09;&#x5BBD;&#x5EA6;&#x589E;&#x52A0;&#x65F6;&#x9010;&#x6E10;&#x53D8;&#x4E3A;&#x6C34;&#x5E73;&#x5C55;&#x5F00;&#x6A21;&#x5F0F;&#x3002;</p>
<h3 id="1-&#x57FA;&#x7840;&#x5BFC;&#x822A;&#x6761;">1. &#x57FA;&#x7840;&#x5BFC;&#x822A;&#x6761;</h3>
<p>&#x5B9E;&#x9645;&#x4E0A;&#xFF0C;&#x5BFC;&#x822A;&#x6761;&#x548C;&#x5BFC;&#x822A;&#x5728;&#x5916;&#x89C2;&#x4E0A;&#x7684;&#x5DEE;&#x522B;&#x5E76;&#x4E0D;&#x662F;&#x90A3;&#x4E48;&#x7684;&#x5927;&#xFF0C;&#x4F46;&#x662F;&#x5728;&#x5B9E;&#x9645;&#x4F7F;&#x7528;&#x4E2D;&#x5BFC;&#x822A;&#x6761;&#x8981;&#x6BD4;&#x5BFC;&#x822A;&#x590D;&#x6742;&#x5F97;&#x591A;&#x3002;&#x4E0B;&#x9762;&#x5C31;&#x6765;&#x5B9E;&#x73B0;&#x4E00;&#x4E2A;&#x6700;&#x57FA;&#x7840;&#x7684;&#x5BFC;&#x822A;&#x6761;&#x3002;</p>
<p></p><p data-height="232" data-theme-id="0" data-slug-hash="NbMypQ" data-default-tab="html" data-user="sundevilyang" data-embed-version="2" data-pen-title="basic_navbar" class="codepen">See the Pen <a href="http://codepen.io/sundevilyang/pen/NbMypQ/" target="_blank">basic_navbar</a> by Yang Wen (<a href="http://codepen.io/sundevilyang" target="_blank">@sundevilyang</a>) on <a href="http://codepen.io" target="_blank">CodePen</a>.</p><p></p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>

<p>&#x70B9;&#x51FB;&#x4E0A;&#x56FE;HTML&#xFF0C;&#x518D;&#x70B9;&#x51FB;Result&#x770B;&#x770B;&#x6548;&#x679C;&#x3002;&#x62C9;&#x4F38;&#x6D4F;&#x89C8;&#x5668;&#xFF0C;&#x5206;&#x522B;&#x770B;&#x770B;&#x5728;<strong>&#x5BBD;&#x5C4F;</strong>&#x548C;<strong>&#x7A84;&#x5C4F;</strong>&#x7684;&#x6548;&#x679C;&#x3002;</p>
<p>&#x5728;&#x5236;&#x4F5C;&#x4E00;&#x4E2A;&#x57FA;&#x7840;&#x5BFC;&#x822A;&#x6761;&#x65F6;&#xFF0C;&#x4E3B;&#x8981;&#x6CE8;&#x610F;&#x4EE5;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ul>
<li>&#x9996;&#x5148;&#x5728;&#x5236;&#x4F5C;&#x5BFC;&#x822A;&#x7684;&#x5217;&#x8868;(<code>&lt;ul class=&quot;nav&quot;&gt;</code>)&#x57FA;&#x7840;&#x4E0A;&#x6DFB;&#x52A0;&#x7C7B;&#x540D;<code>.navbar-nav</code></li>
<li>&#x5728;&#x5217;&#x8868;&#x5916;&#x90E8;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;<code>&lt;div&gt;</code>&#x5728;&#x8FD9;&#x91CC;&#x5141;&#x8BB8;&#x7684;&#x8BDD;&#x63A8;&#x8350;&#x4F7F;&#x7528;<code>&lt;nav&gt;</code>&#xFF0C;&#x5E76;&#x4E14;&#x4F7F;&#x7528;&#x7C7B;&#x540D;<code>.navbar</code>&#x548C;<code>.navbar-default</code></li>
<li><code>.navbar</code>&#x7C7B;&#x7684;&#x4E3B;&#x8981;&#x529F;&#x80FD;&#x5C31;&#x662F;&#x8BBE;&#x7F6E;&#x5DE6;&#x53F3;padding&#x548C;&#x5706;&#x89D2;&#x7B49;&#x6548;&#x679C;&#xFF0C;&#x901A;&#x8FC7;<code>.navbar-default</code>&#x6765;&#x8FDB;&#x884C;&#x63A7;&#x5236;&#x5BFC;&#x822A;&#x6761;&#x7684;&#x989C;&#x8272;&#x6BD4;&#x5982;&#x8FD8;&#x6709;<code>.navbar-inverse</code>&#x3002;</li>
</ul>
<h3 id="2-&#x5E26;&#x6807;&#x9898;&#x3001;&#x4E8C;&#x7EA7;&#x83DC;&#x5355;">2. &#x5E26;&#x6807;&#x9898;&#x3001;&#x4E8C;&#x7EA7;&#x83DC;&#x5355;</h3>
<p>&#x5728;Web&#x9875;&#x9762;&#x5236;&#x4F5C;&#x4E2D;&#xFF0C;&#x4E00;&#x822C;&#x90FD;&#x53EF;&#x4EE5;&#x5728;&#x83DC;&#x5355;&#x524D;&#x9762;&#x770B;&#x5230;&#x6709;&#x4E00;&#x4E2A;&#x6807;&#x9898;&#xFF08;&#x6587;&#x5B57;&#x5B57;&#x53F7;&#x6BD4;&#x5176;&#x5B83;&#x6587;&#x5B57;&#x7A0D;&#x5927;&#x4E00;&#x4E9B;&#xFF09;&#xFF0C;&#x5176;&#x5B9E;&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E5F;&#x4E3A;&#x5927;&#x5BB6;&#x505A;&#x4E86;&#x8FD9;&#x65B9;&#x9762;&#x8003;&#x8651;&#xFF0C;&#x5176;&#x901A;&#x8FC7;.navbar-header&#x548C;.navbar-brand&#x6765;&#x5B9E;&#x73B0;&#xFF0C;&#x5982;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-header&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-brand&quot;</span>&gt;</span>WEB&#x5F00;&#x53D1;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x505A;logo&#xFF0C;&#x4E2D;&#x6587;&#x5B98;&#x7F51;&#x63CF;&#x8FF0;&#xFF0C;&#x5728;&#x6B64;&#x4E0D;&#x8FDB;&#x884C;&#x8BE6;&#x7EC6;&#x63CF;&#x8FF0;&#x3002;</p>
<p>&#x4E8C;&#x7EA7;&#x83DC;&#x5355;&#x81EA;&#x7136;&#x4E0D;&#x7528;&#x591A;&#x8BF4;&#xFF0C;&#x6211;&#x4EEC;&#x4E00;&#x8D77;&#x6765;&#x770B;&#x770B;&#x4E0B;&#x9762;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x4EE5;&#x53CA;&#x80FD;&#x5B9E;&#x73B0;&#x7684;&#x6548;&#x679C;&#xFF1A;&#xFF08;&#x6CE8;&#x610F;&#x8FD9;&#x91CC;&#x4F7F;&#x7528;&#x7684;&#x662F;navbar-inverse&#x53CD;&#x8272;&#x7684;&#x5BFC;&#x822A;&#x6761;&#xFF09;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar navbar-inverse&quot;</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;navigation&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-header&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-brand&quot;</span>&gt;</span>WEB&#x5F00;&#x53D1;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
     <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav navbar-nav&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>HTML<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>CSS<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown&quot;</span> &gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-toggle&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;dropdown&quot;</span>&gt;</span>JavaScript
            <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;caret&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dropdown-menu&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>jQuery<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>Vue<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>NodeJS<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span> &gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>PHP<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;  </p>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-083513.jpg" alt="&#x6807;&#x9898;-&#x4E0B;&#x62C9;"></p>
<p>&#x6211;&#x4EEC;&#x5E38;&#x5E38;&#x5728;&#x5BFC;&#x822A;&#x6761;&#x4E2D;&#x90FD;&#x80FD;&#x770B;&#x5230;&#x641C;&#x7D22;&#x8868;&#x5355;&#xFF0C;&#x6BD4;&#x5982;&#x77E5;&#x4E4E;&#xFF0C;&#x65B0;&#x6D6A;&#x5FAE;&#x535A;&#x7B49;&#x7B49;&#x90FD;&#x5177;&#x6709;&#xFF0C;Bootstrap&#x6846;&#x67B6;&#x5F53;&#x7136;&#x4E0D;&#x53EF;&#x80FD;&#x7F3A;&#x6389;&#x8FD9;&#x6837;&#x7684;&#x4E1C;&#x897F;&#x3002;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x4E5F;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF1A;</p>
<p>&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x63D0;&#x4F9B;<code>.navbar-form</code>&#xFF0C;&#x5728;<code>.navbar</code>&#x5BB9;&#x5668;&#x4E2D;&#x653E;&#x7F6E;&#x4E00;&#x4E2A;&#x5E26;&#x6709;<code>.navbar-form</code>&#x7C7B;&#x540D;&#x7684;&#x8868;&#x5355;&#xFF1B;&#x518D;&#x6DFB;&#x52A0;<code>.navbar-left</code>&#x8BA9;&#x8868;&#x5355;&#x5DE6;&#x6D6E;&#x52A8;&#xFF0C;&#x66F4;&#x597D;&#x5B9E;&#x73B0;&#x5BF9;&#x9F50;&#x3002;
&#x5728;Bootstrap&#x4E2D;&#xFF0C;&#x8FD8;&#x63D0;&#x4F9B;&#x4E86;<code>.navbar-right</code>&#x6837;&#x5F0F;&#xFF0C;&#x8BA9;&#x5143;&#x7D20;&#x5728;&#x5BFC;&#x822A;&#x6761;&#x9760;&#x53F3;&#x5BF9;&#x9F50;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">form</span> <span class="hljs-attr">action</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-form navbar-left&quot;</span> <span class="hljs-attr">rol</span>=<span class="hljs-string">&quot;search&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-control&quot;</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">&quot;&#x8BF7;&#x8F93;&#x5165;&#x5173;&#x952E;&#x8BCD;&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;submit&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-default&quot;</span>&gt;</span>&#x641C;&#x7D22;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">form</span>&gt;</span>
</code></pre>
<h3 id="3-&#x6309;&#x94AE;&#x3001;&#x6587;&#x672C;&#x548C;&#x94FE;&#x63A5;">3. &#x6309;&#x94AE;&#x3001;&#x6587;&#x672C;&#x548C;&#x94FE;&#x63A5;</h3>
<p>&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x4E00;&#x4E9B;&#x6837;&#x5F0F;&#x4E4B;&#x5916;&#xFF0C;bootstrap&#x6846;&#x67B6;&#x63D0;&#x4F9B;&#x4E86;&#x4E09;&#x79CD;&#x5176;&#x4ED6;&#x6837;&#x5F0F;&#xFF1A;</p>
<pre><code>1. &#x5BFC;&#x822A;&#x6761;&#x4E2D;&#x7684;&#x6309;&#x94AE;`navbar-btn`&#xFF0C;&#x4F7F;&#x4E0D;&#x5728;`&lt;form&gt;`&#x4E2D;&#x7684;&#x6309;&#x94AE;&#x5728;&#x5BFC;&#x822A;&#x6761;&#x91CC;&#x5782;&#x76F4;&#x5C45;&#x4E2D;
1. &#x5BFC;&#x822A;&#x6761;&#x4E2D;&#x7684;&#x6587;&#x672C;`navbar-text`&#xFF0C;&#x4E00;&#x822C;&#x4F7F;&#x7528;`&lt;p&gt;`&#x5143;&#x7D20;&#xFF0C;&#x8FBE;&#x5230;&#x6700;&#x4F18;&#x7684;&#x884C;&#x8DDD;
1. &#x5BFC;&#x822A;&#x6761;&#x4E2D;&#x7684;&#x666E;&#x901A;&#x94FE;&#x63A5;`navbar-link`&#xFF0C;&#x975E;&#x5BFC;&#x822A;&#x7684;&#x94FE;&#x63A5;&#xFF0C;&#x6DFB;&#x52A0;&#x8FD9;&#x4E2A;&#x7C7B;&#xFF0C;&#x53EF;&#x4EE5;&#x6709;&#x6B63;&#x786E;&#x7684;&#x9ED8;&#x8BA4;&#x989C;&#x8272;&#x4E0E;&#x53CD;&#x8272;&#x8BBE;&#x7F6E;
</code></pre><p>&#x4F46;&#x8FD9;&#x4E09;&#x79CD;&#x6837;&#x5F0F;&#x5728;&#x6846;&#x67B6;&#x4E2D;&#x4F7F;&#x7528;&#x65F6;&#x53D7;&#x5230;&#x4E00;&#x5B9A;&#x7684;&#x9650;&#x5236;&#xFF0C;&#x9700;&#x8981;&#x548C;<code>navbar-brand&#x3001;navbar-nav</code>&#x914D;&#x5408;&#x8D77;&#x6765;&#x4F7F;&#x7528;&#x3002;&#x800C;&#x4E14;&#x5BF9;&#x6570;&#x91CF;&#x4E5F;&#x6709;&#x4E00;&#x5B9A;&#x7684;&#x9650;&#x5236;&#xFF0C;&#x4E00;&#x822C;&#x60C5;&#x51B5;&#x5728;&#x4F7F;&#x7528;&#x4E00;&#x5230;&#x4E24;&#x4E2A;&#x4E0D;&#x4F1A;&#x6709;&#x95EE;&#x9898;&#xFF0C;&#x8D85;&#x8FC7;&#x4E24;&#x4E2A;&#x5C31;&#x4F1A;&#x6709;&#x95EE;&#x9898;&#x3002;</p>
<h3 id="4-&#x56FA;&#x5B9A;&#x5BFC;&#x822A;&#x6761;">4. &#x56FA;&#x5B9A;&#x5BFC;&#x822A;&#x6761;</h3>
<p>&#x6709;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5BFC;&#x822A;&#x6761;&#x56FA;&#x5B9A;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x9876;&#x90E8;&#x6216;&#x5E95;&#x90E8;&#xFF0C;Bootstrap&#x4E3A;&#x6211;&#x4EEC;&#x65B9;&#x4FBF;&#x7684;&#x63D0;&#x4F9B;&#x4E86;&#x4E24;&#x4E2A;&#x7C7B;&#x6765;&#x5B9E;&#x73B0;&#x8FD9;&#x6837;&#x7684;&#x6837;&#x5F0F;&#xFF1A;</p>
<p>.navbar-fixed-top&#xFF1A;&#x5BFC;&#x822A;&#x6761;&#x56FA;&#x5B9A;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x7A97;&#x53E3;&#x9876;&#x90E8;
.navbar-fixed-bottom&#xFF1A;&#x5BFC;&#x822A;&#x6761;&#x56FA;&#x5B9A;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x7A97;&#x53E3;&#x5E95;&#x90E8;
&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x5236;&#x4F5C;&#x5BFC;&#x822A;&#x6761;&#x6700;&#x5916;&#x90E8;&#x5BB9;&#x5668;&#xFF08;navbar&#xFF09;&#x4E0A;&#x8FFD;&#x52A0;&#x5BF9;&#x5E94;&#x7684;&#x7C7B;&#x540D;&#x5373;&#x53EF;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">nav</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar navbar-default navbar-static-top&quot;</span>&gt;</span>
    ...
<span class="hljs-tag">&lt;/<span class="hljs-name">nav</span>&gt;</span>
</code></pre>
<p>&#x8FD9;&#x4E2A;&#x56FA;&#x5B9A;&#x7684;&#x5BFC;&#x822A;&#x6761;&#x4F1A;&#x906E;&#x4F4F;&#x9875;&#x9762;&#x4E0A;&#x7684;&#x5176;&#x5B83;&#x5185;&#x5BB9;&#xFF0C;&#x9664;&#x975E;&#x4F60;&#x7ED9;<body>&#x5143;&#x7D20;&#x5E95;&#x90E8;&#x8BBE;&#x7F6E;&#x4E86;padding&#x3002;&#x63D0;&#x793A;&#xFF1A;&#x5BFC;&#x822A;&#x6761;&#x7684;&#x9ED8;&#x8BA4;&#x9AD8;&#x5EA6;&#x662F; 50px&#x3002;&#x5982;&#xFF1A;body { padding-bottom: 70px; }&#xFF0C;&#x5F53;&#x7136;&#x4F60;&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4F60;&#x81EA;&#x5DF1;&#x7684;&#x503C;&#x3002;</body></p>
<h3 id="5-&#x54CD;&#x5E94;&#x5F0F;&#x5BFC;&#x822A;&#x6761;">5. &#x54CD;&#x5E94;&#x5F0F;&#x5BFC;&#x822A;&#x6761;</h3>
<p>&#x5728;&#x4E0A;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C;&#x5BFC;&#x822A;&#x6761;&#x5C31;&#x4EC5;&#x4EC5;&#x80FD;&#x5927;&#x5C4F;&#x5E55;&#x4E0B;&#x6709;&#x4E00;&#x4E2A;&#x4E0D;&#x9519;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x5728;&#x5C4F;&#x5E55;&#x53D8;&#x5C0F;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x8FD8;&#x76F4;&#x63A5;&#x628A;&#x6240;&#x6709;&#x7684;&#x5BFC;&#x822A;&#x9879;&#x76F4;&#x63A5;&#x5C55;&#x73B0;&#x51FA;&#x6765;&#x5C31;&#x4E0D;&#x9002;&#x5408;&#x4E86;&#x3002;&#x4E3A;&#x4E86;&#x6709;&#x4E00;&#x4E2A;&#x66F4;&#x597D;&#x7684;&#x663E;&#x793A;&#x6548;&#x679C;&#xFF0C;&#x54CD;&#x5E94;&#x5F0F;&#x7684;&#x5BFC;&#x822A;&#x6761;&#x8BBE;&#x8BA1;&#x4E5F;&#x5C31;&#x968F;&#x4E4B;&#x800C;&#x6765;&#x3002;&#x6211;&#x4EEC;&#x5148;&#x6765;&#x770B;&#x770B;&#x6548;&#x679C;&#xFF0C;&#x518D;&#x4E00;&#x6B65;&#x4E00;&#x6B65;&#x5206;&#x6790;&#x5B83;&#xFF01;</p>
<p>&#x54CD;&#x5E94;&#x5F0F;&#x5BFC;&#x822A;&#x6761;</p>
<p>&#x7A84;&#x5C4F;&#x65F6;&#xFF0C;&#x70B9;&#x51FB;&#x53F3;&#x8FB9;&#x7684;&#x6309;&#x94AE;&#x56FE;&#x6807;&#x53EF;&#x5C55;&#x5F00;&#xFF0C;&#x6548;&#x679C;&#x4E0E;&#x4E0A;&#x9762;&#x7684;&#x5C55;&#x5F00;&#x6548;&#x679C;&#x9664;&#x4E86;active&#x72B6;&#x6001;&#x4E0D;&#x518D;&#x6EA2;&#x51FA;&#x5BB9;&#x5668;&#x5916;&#xFF0C;&#x5176;&#x4ED6;&#x57FA;&#x672C;&#x76F8;&#x540C;&#x3002;&#x5B9E;&#x73B0;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar navbar-default&quot;</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;navigation&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-header&quot;</span>&gt;</span>
        <span class="hljs-comment">&lt;!-- .navbar-toggle&#x6837;&#x5F0F;&#x7528;&#x4E8E;toggle&#x6536;&#x7F29;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x5373;nav-collapse collapse&#x6837;&#x5F0F;&#x6240;&#x5728;&#x5143;&#x7D20; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-toggle&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;collapse&quot;</span> <span class="hljs-attr">data-target</span>=<span class="hljs-string">&quot;.navbar-responsive-collapse&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;sr-only&quot;</span>&gt;</span>Toggle Navigation<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
        <span class="hljs-comment">&lt;!-- &#x786E;&#x4FDD;&#x65E0;&#x8BBA;&#x662F;&#x5BBD;&#x5C4F;&#x8FD8;&#x662F;&#x7A84;&#x5C4F;&#xFF0C;navbar-brand&#x90FD;&#x663E;&#x793A; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-brand&quot;</span>&gt;</span>WEB&#x5F00;&#x53D1;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x5C4F;&#x5E55;&#x5BBD;&#x5EA6;&#x5C0F;&#x4E8E;768px&#x65F6;&#xFF0C;div.navbar-responsive-collapse&#x5BB9;&#x5668;&#x91CC;&#x7684;&#x5185;&#x5BB9;&#x90FD;&#x4F1A;&#x9690;&#x85CF;&#xFF0C;&#x663E;&#x793A;icon-bar&#x56FE;&#x6807;&#xFF0C;&#x5F53;&#x70B9;&#x51FB;icon-bar&#x56FE;&#x6807;&#x65F6;&#xFF0C;&#x518D;&#x5C55;&#x5F00;&#x3002;&#x5C4F;&#x5E55;&#x5927;&#x4E8E;768px&#x65F6;&#xFF0C;&#x9ED8;&#x8BA4;&#x663E;&#x793A;&#x3002; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;collapse navbar-collapse navbar-responsive-collapse&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav navbar-nav&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>HTML<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>CSS<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>JavaScript<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>PHP<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x5206;&#x6790;&#xFF1A;</p>
<p>&#x548C;&#x666E;&#x901A;&#x5BFC;&#x822A;&#x6761;&#x4E00;&#x6837;&#xFF0C;&#x6700;&#x5916;&#x5C42;&#x4F7F;&#x7528;<code>&lt;div class=&quot;navbar navbar-default&quot; role=&quot;navigation&quot;&gt;</code>&#x5BB9;&#x5668;&#x5305;&#x88F9;&#xFF0C;&#x4E3B;&#x8981;&#x662F;<code>.navbar</code>&#x548C; <code>.navbar-default</code>&#x7C7B;&#x3002;
&#x4FDD;&#x8BC1;&#x5728;&#x7A84;&#x5C4F;&#x65F6;&#x9700;&#x8981;&#x6298;&#x53E0;&#x7684;&#x5185;&#x5BB9;&#x5FC5;&#x987B;&#x5305;&#x88F9;&#x5728;&#x5E26;&#x4E00;&#x4E2A;div&#x5185;&#xFF0C;&#x5E76;&#x4E14;&#x4E3A;&#x8FD9;&#x4E2A;div&#x52A0;&#x5165;<code>.collapse&#x3001;.navbar-collapse</code>&#x4E24;&#x4E2A;&#x7C7B;&#x540D;&#x3002;&#x6700;&#x540E;&#x4E3A;&#x8FD9;&#x4E2A;<code>div</code>&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;class&#x7C7B;&#x540D;&#x6216;&#x8005;id&#x540D;&#x3002;
&#x4FDD;&#x8BC1;&#x5728;&#x7A84;&#x5C4F;&#x65F6;&#x8981;&#x663E;&#x793A;&#x7684;&#x56FE;&#x6807;&#x6837;&#x5F0F;&#xFF08;&#x56FA;&#x5B9A;&#x5199;&#x6CD5;&#xFF09;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;navbar-toggle&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">data-toggle</span>=<span class="hljs-string">&quot;collapse&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;sr-only&quot;</span>&gt;</span>Toggle Navigation<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;icon-bar&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
</code></pre>
<p>&#x5E76;&#x4E3A;button&#x6DFB;&#x52A0;data-target=&#x201D;.&#x7C7B;&#x540D;/#id&#x540D;&#x201D;&#xFF0C;&#x7A76;&#x7ADE;&#x662F;&#x7C7B;&#x540D;&#x8FD8;&#x662F;id&#x540D;&#x5462;&#xFF1F;&#x7531;&#x9700;&#x8981;&#x6298;&#x53E0;&#x7684;div&#x6765;&#x51B3;&#x5B9A;&#x3002;&#xFF08;&#x8FD9;&#x91CC;&#x5F88;&#x5173;&#x952E;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x628A;&#x4E0A;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x5728;&#x8FD9;&#x91CC;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#xFF0C;&#x4F1A;&#x53D1;&#x73B0;&#x65E0;&#x6CD5;&#x5C55;&#x5F00;&#xFF09;</p>
<h2 id="&#x4E94;&#x3001;-&#x5206;&#x9875;">&#x4E94;&#x3001; &#x5206;&#x9875;</h2>
<p>&#x5206;&#x9875;&#x5BFC;&#x822A;&#x51E0;&#x4E4E;&#x5728;&#x6240;&#x6709;&#x7684;&#x7F51;&#x7AD9;&#x90FD;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;&#x597D;&#x7684;&#x5206;&#x9875;&#x5BFC;&#x822A;&#x53EF;&#x4EE5;&#x7ED9;&#x7528;&#x6237;&#x5E26;&#x6765;&#x66F4;&#x597D;&#x989D;&#x7528;&#x6237;&#x4F53;&#x9A8C;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x722C;&#x866B;&#x5728;&#x7F51;&#x9875;&#x4E2D;&#x8FDB;&#x884C;&#x641C;&#x7D22;&#x3002;</p>
<h3 id="1-&#x5E26;&#x9875;&#x7801;&#x7684;&#x5206;&#x9875;&#x5BFC;&#x822A;">1 &#x5E26;&#x9875;&#x7801;&#x7684;&#x5206;&#x9875;&#x5BFC;&#x822A;</h3>
<p>&#x5E26;&#x9875;&#x7801;&#x7684;&#x5206;&#x9875;&#x5BFC;&#x822A;&#xFF0C;&#x5E94;&#x8BE5;&#x662F;&#x6700;&#x5E38;&#x89C1;&#x7684;&#x4E00;&#x79CD;&#x5206;&#x9875;&#x5BFC;&#x822A;&#xFF0C;&#x7279;&#x522B;&#x662F;&#x5728;&#x5217;&#x8868;&#x9875;&#x5185;&#x5BB9;&#x5F88;&#x591A;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x7ED9;&#x7528;&#x6237;&#x63D0;&#x4F9B;&#x5E26;&#x9875;&#x7801;&#x7684;&#x5206;&#x9875;&#x5BFC;&#x822A;&#x65B9;&#x5F0F;&#xFF0C;&#x5728;Bootstrap&#x4E2D;&#x4F7F;&#x7528;&#x7684;&#x662F;<code>ul&gt;li&gt;a</code>&#x8FD9;&#x6837;&#x7684;&#x7ED3;&#x6784;&#xFF0C;&#x5728;<code>ul</code>&#x6807;&#x7B7E;&#x4E0A;&#x52A0;&#x5165;pagination&#x7C7B;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;pagination &quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&amp;laquo;&#x7B2C;&#x4E00;&#x9875;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>6<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>7<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>8<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>9<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>10<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;disabled&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x6700;&#x540E;&#x4E00;&#x9875;&amp;raquo;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x5B9E;&#x73B0;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;  </p>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-084118.jpg" alt="&#x5206;&#x9875;&#x7801;&#x5BFC;&#x822A;"></p>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x540C;&#x6837;&#x4F1A;&#x6709;<code>hover&#x3001;active&#x3001;disabled</code>&#x7B49;&#x7B49;&#x72B6;&#x6001;&#xFF0C;&#x5F53;&#x7136;&#x5B83;&#x4E5F;&#x53EF;&#x4EE5;&#x8C03;&#x6574;&#x5927;&#x5C0F;&#xFF1A;&#x5728;&#x5916;&#x5C42;&#x5BB9;&#x5668;&#x4E2D;&#x7684;<code>.pagination</code>&#x7C7B;&#x540E;&#xFF0C;&#x6DFB;&#x52A0;<code>.pagination-lg</code>&#x8BA9;&#x5206;&#x9875;&#x5BFC;&#x822A;&#x53D8;&#x5927;&#xFF1B;<code>.pagination-sm</code>&#x8BA9;&#x5206;&#x9875;&#x5BFC;&#x822A;&#x53D8;&#x5C0F;&#xFF1A;</p>
<h3 id="2-&#x7FFB;&#x9875;&#x5206;&#x9875;&#x5BFC;&#x822A;">2 &#x7FFB;&#x9875;&#x5206;&#x9875;&#x5BFC;&#x822A;</h3>
<p>&#x5176;&#x5B9E;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#xFF0C;&#x5C31;&#x662F;&#x770B;&#x4E0D;&#x5230;&#x5177;&#x4F53;&#x7684;&#x9875;&#x7801;&#xFF0C;&#x53EA;&#x4F1A;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#x4E0A;&#x4E00;&#x9875;&#x548C;&#x4E0B;&#x4E00;&#x9875;&#x7684;&#x6309;&#x94AE;&#x3002;</p>
<p>&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5728;<code>ul</code>&#x6807;&#x7B7E;&#x4E0A;&#x6DFB;&#x52A0;<code>pager</code>&#x7C7B;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;pager&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&amp;laquo;&#x4E0A;&#x4E00;&#x9875;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x4E0B;&#x4E00;&#x9875;&amp;raquo;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x5B83;&#x9ED8;&#x8BA4;&#x662F;&#x5C45;&#x4E2D;&#x663E;&#x793A;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4E00;&#x4E2A;&#x5C45;&#x5DE6;&#x4E00;&#x4E2A;&#x5C45;&#x53F3;&#x663E;&#x793A;&#x7684;&#x8BDD;&#xFF0C;&#x6DFB;&#x52A0;&#x4E24;&#x4E2A;&#x6837;&#x5F0F;&#xFF1A;<code>previous</code>&#x8BA9;&#x201C;&#x4E0A;&#x4E00;&#x6B65;&#x201D;&#x6309;&#x94AE;&#x5C45;&#x5DE6;&#xFF1B;next&#x8BA9;&#x201C;&#x4E0B;&#x4E00;&#x6B65;&#x201D;&#x6309;&#x94AE;&#x5C45;&#x53F3;&#x3002;&#xFF08;&#x540C;&#x6837;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>disabled</code>&#x8868;&#x793A;&#x7981;&#x7528;&#x72B6;&#x6001;&#xFF09;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;pager&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;previous disabled&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&amp;laquo;&#x4E0A;&#x4E00;&#x9875;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;next&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>&#x4E0B;&#x4E00;&#x9875;&amp;raquo;<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<hr>
<h2 id="&#x516D;&#x3001;&#x5176;&#x4ED6;">&#x516D;&#x3001;&#x5176;&#x4ED6;</h2>
<h3 id="&#x6807;&#x7B7E;">&#x6807;&#x7B7E;</h3>
<p>&#x5728;&#x4E00;&#x4E9B;Web&#x9875;&#x9762;&#x4E2D;&#x5E38;&#x5E38;&#x4F1A;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x6807;&#x7B7E;&#x7528;&#x6765;&#x544A;&#x8BC9;&#x7528;&#x6237;&#x4E00;&#x4E9B;&#x989D;&#x5916;&#x7684;&#x4FE1;&#x606F;&#xFF0C;&#x6BD4;&#x5982;&#x8BF4;&#x5728;&#x5BFC;&#x822A;&#x4E0A;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x5BFC;&#x822A;&#x9879;&#xFF0C;&#x53EF;&#x80FD;&#x5C31;&#x4F1A;&#x52A0;&#x4E00;&#x4E2A;&#x201C;new&#x201D;&#x6807;&#x7B7E;&#xFF0C;&#x6765;&#x544A;&#x8BC9;&#x7528;&#x6237;&#x3002;&#x8FD9;&#x662F;&#x65B0;&#x6DFB;&#x52A0;&#x7684;&#x5BFC;&#x822A;&#x9879;&#x3002;
&#x5728;Bootstrap&#x4E13;&#x95E8;&#x5C06;&#x8FD9;&#x6837;&#x7684;&#x6548;&#x679C;&#x63D0;&#x53D6;&#x6210;&#x4E3A;&#x4E86;&#x5355;&#x72EC;&#x7684;&#x6807;&#x7B7E;&#x7EC4;&#x4EF6;&#x3002;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>&lt;span&gt;</code>&#x8FD9;&#x6837;&#x7684;&#x884C;&#x5185;&#x6807;&#x7B7E;&#x6DFB;&#x52A0;<code>.label</code>&#x7C7B;&#x6765;&#x63A7;&#x5236;&#x5927;&#x5C0F;&#xFF0C;&#x518D;&#x4F7F;&#x7528;&#x60C5;&#x666F;&#x7C7B;&#x6765;&#x63A7;&#x5236;&#x9AD8;&#x4EAE;&#x663E;&#x793A;&#x7684;&#x989C;&#x8272;&#x5982;&#xFF1A;<code>label-default&#x3001;label-danger</code>&#x7B49;&#x7B49;&#xFF08;&#x5728;&#x539F;&#x6765;&#x7B14;&#x8BB0;&#x4E2D;&#x8BF4;&#x5230;&#x8FC7;&#x8FD9;&#x6837;&#x7684;&#x60C5;&#x666F;&#x7C7B;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x8FD9;&#x91CC;&#x9700;&#x8981;&#x52A0;&#x4E0A;&#x4E0D;&#x540C;&#x7684;&#x524D;&#x7F00;&#xFF09;
<img src="http://wy.codingirlsclub.com/2016-12-07-084529.jpg" alt="&#x5BFC;&#x822A;&#x6761;&#x6807;&#x7B7E;"></p>
<h3 id="&#x5FBD;&#x7AE0;&#xFF08;&#x89D2;&#x6807;&#xFF09;">&#x5FBD;&#x7AE0;&#xFF08;&#x89D2;&#x6807;&#xFF09;</h3>
<p>&#x5176;&#x5B9E;&#x548C;&#x4E0A;&#x9762;&#x7684;&#x6807;&#x7B7E;&#x6548;&#x679C;&#x5F88;&#x5927;&#x4E00;&#x90E8;&#x5206;&#x662F;&#x7C7B;&#x4F3C;&#x7684;&#xFF0C;&#x4E00;&#x822C;&#x7528;&#x4F5C;&#x4FE1;&#x606F;&#x63D0;&#x793A;&#xFF0C;&#x4F8B;&#x5982;&#x5269;&#x4F59;&#x591A;&#x5C11;&#x672A;&#x8BFB;&#x4FE1;&#x606F;&#x7B49;&#x7B49;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x6211;&#x4EEC;&#x5E38;&#x5E38;&#x80FD;&#x5728;&#x53F3;&#x4E0A;&#x89D2;&#x770B;&#x5230;&#x7684;&#x672A;&#x8BFB;&#x4FE1;&#x606F;&#x63D0;&#x793A;&#x3002;&#x5728;Bootstrap&#x4E2D;&#xFF0C;&#x628A;&#x8FD9;&#x79CD;&#x6548;&#x679C;&#x79F0;&#x4F5C;&#x4E3A;&#x5FBD;&#x7AE0;&#x6548;&#x679C;&#xFF0C;&#x4F7F;&#x7528;badge&#x7C7B;&#x6765;&#x5B9E;&#x73B0;&#x3002;</p>
<p>&#x7ED9;&#x94FE;&#x63A5;&#x3001;&#x5BFC;&#x822A;&#x7B49;&#x5143;&#x7D20;&#x5D4C;&#x5957; <code>&lt;span class=&quot;badge&quot;&gt;</code> &#x5143;&#x7D20;&#xFF0C;&#x53EF;&#x4EE5;&#x5F88;&#x9192;&#x76EE;&#x7684;&#x5C55;&#x793A;&#x65B0;&#x7684;&#x6216;&#x672A;&#x8BFB;&#x7684;&#x4FE1;&#x606F;&#x6761;&#x76EE;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>Inbox <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>42<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-primary&quot;</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span>&gt;</span>
  Messages <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>4<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
</code></pre>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-084555.jpg" alt="&#x5BFC;&#x822A;&#x6761;&#x89D2;&#x6807;"></p>
<p>&#x901A;&#x8FC7;&#x67E5;&#x770B;&#x6E90;&#x7801;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x53D1;&#x73B0;Bootstrap&#x540C;&#x6837;&#x4F7F;&#x7528;<code>:empty</code>&#x4F2A;&#x5143;&#x7D20;&#xFF0C;&#x6765;&#x8BBE;&#x7F6E;&#x5F53;&#x6CA1;&#x6709;&#x5185;&#x5BB9;&#x7684;&#x65F6;&#x5019;&#x9690;&#x85CF;&#xFF1A;</p>
<pre><code class="lang-css"><span class="hljs-selector-class">.badge</span><span class="hljs-selector-pseudo">:empty</span> {
    <span class="hljs-attribute">display</span>: none;
}
</code></pre>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;IE8 &#x4E0D;&#x652F;&#x6301; <code>:empty</code>&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x6240;&#x4EE5;&#x4E0D;&#x4F1A;&#x9ED8;&#x8BA4;&#x9690;&#x85CF;&#xFF1B;</p>
<p>Bootstrap &#x4E2D;&#x7684;&#x5FBD;&#x7AE0;&#x4F1A;&#x9002;&#x914D;&#x5BFC;&#x822A;&#x5143;&#x7D20;&#x7684;&#x6FC0;&#x6D3B;&#x72B6;&#x6001;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav nav-pills&quot;</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;tablist&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;presentation&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;active&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>Home <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>42<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;presentation&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>Profile<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;presentation&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>Messages <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>3<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p><img src="http://wy.codingirlsclub.com/2016-12-07-084627.jpg" alt=""></p>
<h3 id="&#x7F29;&#x7565;&#x56FE;">&#x7F29;&#x7565;&#x56FE;</h3>
<p>&#x5176;&#x5B9E;&#x5728;&#x6211;&#x4EEC;&#x65E5;&#x5E38;&#x4F7F;&#x7528;&#x7684;&#x7F51;&#x9875;&#x4E2D;&#xFF0C;&#x968F;&#x5904;&#x90FD;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6709;&#x7F29;&#x7565;&#x56FE;&#x7684;&#x5B58;&#x5728;&#xFF0C;&#x6BD4;&#x5982;&#x6DD8;&#x5B9D;&#x7684;&#x5546;&#x54C1;&#x5217;&#x8868;&#xFF0C;&#x6155;&#x8BFE;&#x7F51;&#x4E0A;&#x7684;&#x8BFE;&#x7A0B;&#x5217;&#x8868;&#x7B49;&#x7B49;&#xFF0C;Bootstrap&#x81EA;&#x7136;&#x4E0D;&#x4F1A;&#x653E;&#x8FC7;&#x90A3;&#x4E48;&#x5E38;&#x89C1;&#x6548;&#x679C;&#xFF0C;&#x5B83;&#x5C06;&#x8FD9;&#x6837;&#x7684;&#x6548;&#x679C;&#x72EC;&#x7ACB;&#x6210;&#x4E3A;&#x4E86;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#x7EC4;&#x4EF6;&#xFF0C;&#x4F7F;&#x7528;.thumbnail&#x6837;&#x5F0F;&#x7C7B;&#xFF0C;Boostrap&#x7F29;&#x7565;&#x56FE;&#x7684;&#x9ED8;&#x8BA4;&#x8BBE;&#x8BA1;&#x4EC5;&#x9700;&#x6700;&#x5C11;&#x7684;&#x6807;&#x7B7E;&#x5C31;&#x80FD;&#x5C55;&#x793A;&#x5E26;&#x94FE;&#x63A5;&#x7684;&#x56FE;&#x7247;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x9700;&#x8981;&#x914D;&#x5408;Bootstrap&#x7684;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x6765;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;&#x4E0D;&#x9519;&#x7684;&#x663E;&#x793A;&#x6548;&#x679C;&#x3002;&#x5728;Bootstrap&#x4E2D;&#x6587;&#x7F51;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x8FD9;&#x6837;&#x7684;&#x793A;&#x4F8B;&#x4EE3;&#x7801;:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;container&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;row&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;col-xs-6 col-md-3&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;thumbnail&quot;</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;...&quot;</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">&quot;...&quot;</span>&gt;</span>
                <span class="hljs-comment">&lt;!-- &#x6B64;&#x5904;&#x5E94;&#x5BF9;&#x56FE;&#x7247;&#x505A;&#x4E00;&#x4E9B;&#x6837;&#x5F0F;&#x8BBE;&#x7F6E;height: 180px;width: 100%; display: block;&#x7B49; --&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
        ...
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x6211;&#x4EEC;&#x5C06;&#x4E0A;&#x9762;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x5217;&#x590D;&#x5236;3&#x4EFD;&#xFF0C;&#x6539;&#x53D8;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x6211;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x56E0;&#x4E3A;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x7684;&#x5B58;&#x5728;&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x7F29;&#x7565;&#x56FE;&#x5DF2;&#x7ECF;&#x53D8;&#x6210;&#x4E86;&#x54CD;&#x5E94;&#x5F0F;&#x7684;&#x3002;&#x8FD9;&#x662F;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x8D77;&#x5230;&#x7684;&#x6548;&#x679C;&#x90A3;&#x4E48;.thumbnail&#x53C8;&#x8D77;&#x5230;&#x4E86;&#x4EC0;&#x4E48;&#x6548;&#x679C;&#x5462;&#xFF1F;
&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x56FE;&#x7247;&#x5468;&#x56F4;&#x6709;&#x4E86;&#x4E00;&#x5708;&#x8FB9;&#x6846;&#xFF0C;&#x5E76;&#x4E14;&#x5728;&#x8FB9;&#x6846;&#x4E0E;&#x56FE;&#x7247;&#x4E4B;&#x95F4;&#x6709;&#x7740;4px&#x7684;padding&#xFF0C;&#x9664;&#x6B64;&#x4E4B;&#x5916;bootstrap&#x8FD8;&#x4EBA;&#x6027;&#x5316;&#x7684;&#x4E3A;&#x6211;&#x4EEC;&#x7684;&#x7F29;&#x7565;&#x56FE;&#x6548;&#x679C;&#x63D0;&#x4F9B;&#x4E86;hover&#x6548;&#x679C;&#x3002;</p>
<p>&#x6DFB;&#x52A0;&#x6807;&#x9898;&#x3001;&#x63CF;&#x8FF0;&#x5185;&#x5BB9;&#x3001;&#x6309;&#x94AE;</p>
<p>&#x6211;&#x4EEC;&#x5F53;&#x7136;&#x4E0D;&#x53EF;&#x80FD;&#x4EC5;&#x4EC5;&#x53EA;&#x5C55;&#x793A;&#x4E00;&#x5F20;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x56FE;&#x7247;&#x5C31;&#x5B8C;&#x4E86;&#xFF0C;&#x6211;&#x4EEC;&#x65F6;&#x5E38;&#x8FD8;&#x4F1A;&#x914D;&#x4E0A;&#x76F8;&#x5173;&#x7684;&#x8BF4;&#x660E;&#x6587;&#x5B57;&#x4EE5;&#x53CA;&#x4E00;&#x4E9B;&#x6309;&#x94AE;&#x7B49;&#x7B49;&#x3002;&#x5728;&#x5DF2;&#x6709;&#x7684;&#x7F29;&#x7565;&#x56FE;&#x7684;&#x57FA;&#x7840;&#x4E0A;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4F7F;&#x7528;.caption&#x5BB9;&#x5668;&#xFF0C;&#x5E76;&#x4E14;&#x5728;&#x8FD9;&#x4E2A;&#x5BB9;&#x5668;&#x4E2D;&#x653E;&#x7F6E;&#x5176;&#x5B83;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x6765;&#x8FBE;&#x5230;&#x7EDF;&#x4E00;&#x7684;&#x663E;&#x793A;&#x6548;&#x679C;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-comment">&lt;!-- &#x6DFB;&#x52A0;&#x5230;&#x4E0A;&#x9762;&#x4EE3;&#x7801;&#x4E2D;&#x7684;.thumbnail&#x5BB9;&#x5668;&#x5185;&#xFF0C;a&#x6807;&#x7B7E;&#x540E; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;caption&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>&#x8BF4;&#x660E;&#x6587;&#x5B57;<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>&#x8FD9;&#x91CC;&#x662F;&#x8BF4;&#x660E;&#x6587;&#x5B57;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-info&quot;</span>&gt;</span>&#x6309;&#x94AE;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn btn-success&quot;</span>&gt;</span>&#x6309;&#x94AE;<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x770B;&#x770B;&#x6548;&#x679C;&#x5427;&#xFF1A;</p>
<p>&#x7F29;&#x7565;&#x56FE;&#x5C55;&#x793A;</p>
<h3 id="&#x8B66;&#x793A;&#x6846;">&#x8B66;&#x793A;&#x6846;</h3>
<p>&#x5176;&#x5B9E;&#x5728;&#x6211;&#x4EEC;&#x7684;&#x7F51;&#x9875;&#x4E2D;&#xFF0C;&#x603B;&#x662F;&#x907F;&#x514D;&#x4E0D;&#x4E86;&#x5404;&#x79CD;&#x7684;&#x63D0;&#x793A;&#x4FE1;&#x606F;&#xFF0C;&#x6BD4;&#x5982;&#x6211;&#x4EEC;&#x7684;&#x767B;&#x9646;&#x754C;&#x9762;&#x4E2D;&#xFF0C;&#x603B;&#x662F;&#x907F;&#x514D;&#x4E0D;&#x4E86;&#x8F93;&#x5165;&#x9519;&#x8BEF;&#x7684;&#x60C5;&#x51B5;&#xFF0C;&#x5C31;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x8B66;&#x793A;&#x6846;&#x6765;&#x63D0;&#x793A;&#x7528;&#x6237;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x3002;Bootstrap&#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x7EC4;&#x8FD9;&#x6837;&#x7684;&#x6837;&#x5F0F;&#x7C7B;&#x3002;</p>
<p>Bootstrap&#x4F7F;&#x7528;.alert&#x6765;&#x63A7;&#x5236;&#x8B66;&#x793A;&#x6846;&#x7684;&#x5927;&#x5C0F;&#x8FB9;&#x8DDD;&#x7B49;&#x6837;&#x5F0F;&#xFF0C;&#x7136;&#x540E;&#x518D;&#x7528;&#xFF1A;&#x6210;&#x529F;&#xFF1A;.alert-success&#x3001;&#x4FE1;&#x606F;&#xFF1A;.alert-info&#x3001;&#x8B66;&#x544A;&#xFF1A;.alert-warning&#x548C;&#x9519;&#x8BEF;&#xFF1A;.alert-danger&#x3001;&#x8FD9;&#x6837;&#x7684;&#x4E00;&#x7EC4;&#x6837;&#x5F0F;&#x7C7B;,&#x6765;&#x8868;&#x793A;&#x4E0D;&#x540C;&#x7684;&#x60C5;&#x666F;&#x989C;&#x8272;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;alert alert-success&quot;</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;alert&quot;</span>&gt;</span>&#x606D;&#x559C;&#x60A8;&#x64CD;&#x4F5C;&#x6210;&#x529F;&#xFF01;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-comment">&lt;!-- ...&#x7B49;&#x7B49; --&gt;</span>
</code></pre>
<p>&#x7F29;&#x7565;&#x56FE;&#x5C55;&#x793A;</p>
<p>&#x5173;&#x95ED;</p>
<p>&#x9664;&#x4E86;&#x5C55;&#x793A;&#x6548;&#x679C;&#x4E4B;&#x5916;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x8FD8;&#x5F15;&#x5165;&#x4E86;Bootstrap&#x7684;js&#x6587;&#x4EF6;&#x3002;&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x7684;&#x8FD8;&#x53EF;&#x4EE5;&#x4E3A;&#x6211;&#x4EEC;&#x7684;&#x8B66;&#x793A;&#x6846;&#x975E;&#x5E38;&#x7B80;&#x5355;&#x7684;&#x521B;&#x9020;&#x4E00;&#x4E9B;&#x4EA4;&#x4E92;&#x6548;&#x679C;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;alert alert-success alert-dismissable&quot;</span>&gt;</span>
    success&#x64CD;&#x4F5C;&#x6210;&#x529F;
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;close&quot;</span> <span class="hljs-attr">data-dismiss</span>=<span class="hljs-string">&quot;alert&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;glyphicon glyphicon-remove&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;&#xFF08;&#x70B9;&#x51FB;&#x540E;&#x9762;&#x7684;icon&#x4FBF;&#x53EF;&#x4EE5;&#x5173;&#x95ED;&#x8BE5;&#x63D0;&#x793A;&#x4FE1;&#x606F;&#xFF09;</p>
<p>&#x7F29;&#x7565;&#x56FE;&#x4EA4;&#x4E92;</p>
<p>&#x90A3;&#x4E48;&#x597D;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x5728;&#x5B9E;&#x73B0;&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x4E00;&#x4E9B;&#x4EC0;&#x4E48;&#x5462;&#xFF1F;&#x4E3B;&#x8981;&#x6709;&#x4E09;&#x4E2A;&#x6B65;&#x9AA4;&#xFF1A;</p>
<p>&#x5728;&#x666E;&#x901A;&#x7684;&#x8B66;&#x793A;&#x6846;.alert&#x7684;&#x57FA;&#x7840;&#x4E0A;&#xFF0C;&#x6DFB;&#x52A0;&#x3002;alert-dismissable&#x7C7B;
&#x5728;button&#x6807;&#x7B7E;&#x4E2D;&#x52A0;&#x5165;close&#x7C7B;&#xFF0C;&#x5B9E;&#x73B0;&#x8B66;&#x793A;&#x6846;&#x5173;&#x95ED;&#x6309;&#x94AE;&#x7684;&#x6837;&#x5F0F;&#xFF08;&#x6211;&#x5728;&#x4E0A;&#x9762;&#x4F7F;&#x7528;&#x4E86;Bootstrap&#x81EA;&#x5E26;&#x7684;icon&#x56FE;&#x6807;&#x6765;&#x5B9E;&#x73B0;&#x5173;&#x95ED;&#x6309;&#x94AE;&#xFF09;
&#x5728;&#x5173;&#x95ED;&#x6309;&#x94AE;&#x4E0A;&#x6DFB;&#x52A0;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;data-dismiss=&quot;alert&quot;&#xFF08;Bootstrap&#x4E2D;&#x662F;&#x901A;&#x8FC7;&#x8FD9;&#x6837;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027;&#xFF0C;&#x518D;&#x4F7F;&#x7528;JS&#x68C0;&#x6D4B;&#x6765;&#x5B9E;&#x73B0;&#x5173;&#x95ED;&#x6548;&#x679C;&#x7684;&#xFF09;
&#x8B66;&#x793A;&#x6846;&#x7684;&#x94FE;&#x63A5;</p>
<p>&#x6709;&#x65F6;&#x6211;&#x8B66;&#x793A;&#x6846;&#x4E2D;&#x9664;&#x4E86;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x4E4B;&#x5916;&#xFF0C;&#x8FD8;&#x4F1A;&#x52A0;&#x5165;&#x4E00;&#x4E2A;&#x94FE;&#x63A5;&#x5730;&#x5740;&#xFF0C;&#x4EE5;&#x4FBF;&#x4E8E;&#x7528;&#x6237;&#x5728;&#x5728;&#x65B0;&#x7684;&#x9875;&#x9762;&#x4E2D;&#x67E5;&#x627E;&#x95EE;&#x9898;&#x53BB;&#x5904;&#x7406;&#x4ED6;&#x7684;&#x9519;&#x8BEF;&#x3002;</p>
<p>Bootstrap&#x4EC5;&#x4EC5;&#x4F7F;&#x7528;&#x4E86;&#x4E00;&#x4E2A;.alert-link&#x7684;&#x7C7B;&#x5C31;&#x5B9E;&#x73B0;&#x4E86;&#x8FD9;&#x6837;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x5BF9;&#x4E8E;&#x94FE;&#x63A5;&#x6837;&#x5F0F;&#x7684;&#x9AD8;&#x4EAE;&#x663E;&#x793A;&#x3001;&#x52A0;&#x7C97;&#xFF0C;&#x5E76;&#x4E14;&#x989C;&#x8272;&#x76F8;&#x5E94;&#x52A0;&#x6DF1;&#x3002;&#xFF08;&#x9664;&#x6B64;&#x4E4B;&#x5916;&#x5728;hover&#x4E0A;&#x53BB;&#x540E;&#x6709;&#x4E0B;&#x5212;&#x7EBF;&#xFF09;</p>
<h3 id="&#x8FDB;&#x5EA6;&#x6761;">&#x8FDB;&#x5EA6;&#x6761;</h3>
<p>Bootstrap&#x6846;&#x67B6;&#x5BF9;&#x4E8E;&#x8FDB;&#x5EA6;&#x6761;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x57FA;&#x672C;&#x6837;&#x5F0F;&#xFF0C;&#x4E00;&#x4E2A;100%&#x5BBD;&#x5EA6;&#x7684;&#x80CC;&#x666F;&#x8272;&#xFF0C;&#x7136;&#x540E;&#x4E00;&#x4E2A;&#x5B50;&#x5BB9;&#x5668;&#x9AD8;&#x4EAE;&#xFF0C;&#x8868;&#x793A;&#x5B8C;&#x6210;&#x8FDB;&#x5EA6;&#x3002;&#x5176;&#x5B9E;&#x5236;&#x4F5C;&#x8FD9;&#x6837;&#x8FDB;&#x5EA6;&#x6761;&#x975E;&#x5E38;&#x5BB9;&#x6613;&#xFF0C;&#x4E00;&#x822C;&#x4F7F;&#x7528;&#x4E24;&#x4E2A;&#x5BB9;&#x5668;&#xFF0C;&#x5916;&#x5BB9;&#x5668;&#x5177;&#x6709;&#x4E00;&#x5B9A;&#x7684;&#x5BBD;&#x5EA6;&#xFF0C;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x80CC;&#x666F;&#x8272;&#xFF0C;&#x4ED6;&#x7684;&#x5B50;&#x5143;&#x7D20;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x5BBD;&#x5EA6;&#xFF08;&#x7236;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x6BD4;&#x4F8B;&#x503C;&#x5982;60%&#xFF09;&#xFF0C;&#x540C;&#x65F6;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x9AD8;&#x4EAE;&#x7684;&#x80CC;&#x666F;&#x8272;&#x3002;</p>
<p>Bootstrap&#x4E5F;&#x662F;&#x8FD9;&#x6837;&#x5B9E;&#x73B0;&#x7684;&#xFF0C;&#x5916;&#x5C42;&#x5BB9;&#x5668;&#x4F7F;&#x7528;.progress&#x7C7B;&#xFF0C;&#x5B50;&#x5BB9;&#x5668;&#x4F7F;&#x7528;.progress-bar&#x7C7B;&#xFF08;&#x522B;&#x5FD8;&#x8BB0;&#x8BBE;&#x7F6E;&#x5BBD;&#x5EA6;&#xFF09;&#x5982;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress&quot;</span>&gt;</span>
       <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress-bar&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;width:80%&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x540C;&#x6837;&#x5B83;&#x4E5F;&#x63D0;&#x4F9B;&#x4E86;&#x56DB;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x60C5;&#x666F;&#x989C;&#x8272;&#x3002;.progress-bar-info..&#x7B49;&#xFF0C;&#x6DFB;&#x52A0;&#x5230;&#x5B50;&#x5BB9;&#x5668;&#x539F;&#x6709;&#x7684;&#x7C7B;&#x540E;&#x5373;&#x53EF;</p>
<p>&#x9664;&#x4E86;&#x8272;&#x5F69;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x4F7F;&#x8FDB;&#x5EA6;&#x6761;&#x7684;&#x53D8;&#x4E3A;&#x6761;&#x7EB9;&#x7684;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5C06;progress-striped&#x6DFB;&#x52A0;&#x5230;&#x539F;&#x6709;&#x7684;&#x7236;&#x5BB9;&#x5668;&#x7C7B;&#x540E;&#xFF0C;&#x5B83;&#x540C;&#x6837;&#x5177;&#x6709;&#x5F69;&#x8272;&#x6548;&#x679C;&#x3002;&#x66F4;&#x8FDB;&#x4E00;&#x6B65;&#x7684;&#x662F;&#xFF0C;&#x82E5;&#x5728;&#x5176;&#x540E;&#x518D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;.active&#x7C7B;&#xFF0C;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x52A8;&#x6001;&#x7684;&#x6761;&#x7EB9;&#x8FDB;&#x5EA6;&#x6761;&#x3002;&#xFF08;&#x5FC5;&#x987B;&#x4E24;&#x4E2A;&#x540C;&#x65F6;&#x4F7F;&#x7528;&#xFF0C;&#x4F7F;&#x7528;css3&#x52A8;&#x753B;&#x5B9E;&#x73B0;&#xFF09;&#x6211;&#x4EEC;&#x6765;&#x8BD5;&#x8BD5;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress progress-striped active&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress-bar progress-bar-danger&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;width:80%&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-comment">&lt;!-- .... --&gt;</span>
</code></pre>
<p>&#x6761;&#x7EB9;&#x8FDB;&#x5EA6;&#x6761;</p>
<p>&#x6211;&#x4EEC;&#x8FD8;&#x53EF;&#x4EE5;&#x5728;&#x4E00;&#x4E2A;&#x8FDB;&#x5EA6;&#x6761;&#x5185;&#xFF0C;&#x5C06;&#x4E0D;&#x540C;&#x72B6;&#x6001;&#x7684;&#x8FDB;&#x5EA6;&#x6761;&#x653E;&#x7F6E;&#x5728;&#x4E00;&#x8D77;&#xFF0C;&#x6C34;&#x5E73;&#x6392;&#x5217;&#xFF0C;&#x5F62;&#x6210;&#x53E0;&#x52A0;&#x8FDB;&#x5EA6;&#x6761;.</p>
<p>&#x5E26;&#x6807;&#x7B7E;&#x7684;&#x663E;&#x793A;&#x6761;
&#x4F7F;&#x7528;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x5B50;&#x5BB9;&#x5668;&#x4E2D;&#x6DFB;&#x52A0;&#x76F8;&#x5E94;&#x7684;&#x6570;&#x5B57;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#xFF0C;&#x4E0D;&#x8FC7;&#x4E0B;&#x9762;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x4F1A;&#x6709;&#x4EC0;&#x4E48;&#x6548;&#x679C;&#x5462;&#xFF1F;&#x4E0D;&#x59A8;&#x4E5F;&#x81EA;&#x5DF1;&#x53BB;&#x8BD5;&#x8BD5;&#x5427;&#xFF01;(&#x5728;&#x6E90;&#x7801;&#x4E2D;&#x641C;&#x7D22;aria-valuenow=&quot;0&quot;&#x53EF;&#x770B;&#x5230;&#x539F;&#x56E0;)</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;progress-bar&quot;</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;progressbar&quot;</span> <span class="hljs-attr">aria-valuenow</span>=<span class="hljs-string">&quot;0&quot;</span> <span class="hljs-attr">aria-valuemin</span>=<span class="hljs-string">&quot;0&quot;</span> <span class="hljs-attr">aria-valuemax</span>=<span class="hljs-string">&quot;100&quot;</span>&gt;</span>0%<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<h3 id="&#x5A92;&#x4F53;&#x5BF9;&#x8C61;">&#x5A92;&#x4F53;&#x5BF9;&#x8C61;</h3>
<p>&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x4E00;&#x822C;&#x5305;&#x62EC;&#x4EE5;&#x4E0B;&#x51E0;&#x4E2A;&#x90E8;&#x5206;&#xFF1A;</p>
<ul>
<li>&#x5A92;&#x4F53;&#x5BF9;&#x50CF;&#x7684;&#x5BB9;&#x5668;&#xFF1A;&#x5E38;&#x4F7F;&#x7528;.media&#x7C7B;&#x540D;&#x8868;&#x793A;&#xFF0C;&#x7528;&#x6765;&#x5BB9;&#x7EB3;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7684;&#x6240;&#x6709;&#x5185;&#x5BB9;</li>
<li>&#x5A92;&#x4F53;&#x5BF9;&#x50CF;&#x7684;&#x5BF9;&#x8C61;&#xFF1A;&#x5E38;&#x4F7F;&#x7528;.media-object&#x8868;&#x793A;&#xFF0C;&#x5C31;&#x662F;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x5E38;&#x5E38;&#x662F;&#x56FE;&#x7247;</li>
<li>&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7684;&#x4E3B;&#x4F53;&#xFF1A;&#x5E38;&#x4F7F;&#x7528;.media-body&#x8868;&#x793A;&#xFF0C;&#x5C31;&#x662F;&#x5A92;&#x4F53;&#x5BF9;&#x50CF;&#x4E2D;&#x7684;&#x4E3B;&#x4F53;&#x5185;&#x5BB9;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x4EFB;&#x4F55;&#x5143;&#x7D20;&#xFF0C;&#x5E38;&#x5E38;&#x662F;&#x56FE;&#x7247;&#x4FA7;&#x8FB9;&#x5185;&#x5BB9;</li>
<li>&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7684;&#x6807;&#x9898;&#xFF1A;&#x5E38;&#x4F7F;&#x7528;.media-heading&#x8868;&#x793A;&#xFF0C;&#x5C31;&#x662F;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x5BF9;&#x8C61;&#x7684;&#x4E00;&#x4E2A;&#x6807;&#x9898;&#xFF0C;&#x6B64;&#x90E8;&#x5206;&#x53EF;&#x9009;</li>
<li>.pull-left&#x6216;&#x8005;.pull-right&#x6765;&#x63A7;&#x5236;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x5BF9;&#x8C61;&#x6D6E;&#x52A8;&#x65B9;&#x5F0F;&#x3002;(&#x5982;&#x56FE;&#x7247;&#x5728;&#x5DE6;&#x6216;&#x8005;&#x5728;&#x53F3;)
&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x7684;&#x7ED3;&#x6784;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;pull-left&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media-object&quot;</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;..&quot;</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">&quot;...&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media-body&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">h4</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media-heading&quot;</span>&gt;</span>Bootstrap<span class="hljs-tag">&lt;/<span class="hljs-name">h4</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#x7684;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7EC4;&#x4EF6;&#x5141;&#x8BB8;&#x5728;&#x4E00;&#x4E2A;&#x5185;&#x5BB9;&#x5757;&#x7684;&#x5DE6;&#x8FB9;&#x6216;&#x53F3;&#x8FB9;&#x5C55;&#x793A;&#x4E00;&#x4E2A;&#x591A;&#x5A92;&#x4F53;&#x5185;&#x5BB9;&#xFF08;&#x56FE;&#x50CF;&#x3001;&#x89C6;&#x9891;&#x3001;&#x97F3;&#x9891;&#xFF09;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x6700;&#x666E;&#x901A;&#x7684;&#x56FE;&#x7247;&#x5728;&#x5DE6;&#xFF0C;&#x6807;&#x9898;&#x4E0E;&#x4ECB;&#x7ECD;&#x6587;&#x5B57;&#x5728;&#x53F3;&#x7684;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7EC4;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x5728;&#x8BBA;&#x575B;&#x4E2D;&#x5E38;&#x5E38;&#x80FD;&#x770B;&#x5230;&#x548C;Bootstrap&#x4E2D;&#x6587;&#x5B98;&#x7F51;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x7EC4;&#x6A21;&#x5757;&#x7C7B;&#x4F3C;&#x7684;&#x9636;&#x68AF;&#x72B6;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#xFF0C;&#x5B83;&#x662F;&#x600E;&#x4E48;&#x5B9E;&#x73B0;&#x7684;&#x5462;&#xFF1F;
&#x5176;&#x5B9E;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x5728;&#x4E0A;&#x4E00;&#x7EA7;&#x7684;.media-body&#x5BB9;&#x5668;&#x6700;&#x540E;&#x6DFB;&#x52A0;&#x65B0;&#x7684;&#x989D;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x5BB9;&#x5668;.media&#x5C31;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x8FD9;&#x6837;&#x7684;&#x9636;&#x68AF;&#x6548;&#x679C;</p>
<p>&#x5A92;&#x4F53;&#x5BF9;&#x8C61;</p>
<p>&#x9664;&#x4E86;&#x8FD9;&#x6837;&#x7684;&#x9636;&#x68AF;&#x5F62;&#x5F0F;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x53EF;&#x4EE5;&#x5728;&#x8BBA;&#x575B;&#x8BC4;&#x8BBA;&#x7CFB;&#x7EDF;&#x4E2D;&#x770B;&#x5230;&#xFF0C;&#x8BC4;&#x8BBA;&#x662F;&#x5E73;&#x94FA;&#x7740;&#x4E0B;&#x6765;&#x7684;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x5C06;&#x539F;&#x6765;&#x7684;.media&#x653E;&#x5728;.media-list&#x5BB9;&#x5668;&#x4E2D;&#x5C31;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#xFF0C;&#x4E0D;&#x8FC7;&#x65E2;&#x7136;&#x90FD;&#x8BF4;&#x4E86;&#x662F;&#x5217;&#x8868;&#xFF0C;&#x90A3;&#x6211;&#x4EEC;&#x8FD8;&#x662F;&#x76F4;&#x63A5;&#x4F7F;&#x7528;ul&gt;li&#x7684;&#x6392;&#x5217;&#x65B9;&#x5F0F;&#x5427;:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media-list&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;media&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>Bootstrap&#x540C;&#x6837;&#x5E2E;&#x6211;&#x4EEC;&#x6E05;&#x9664;&#x4E86;&#xFF0C;&#x5A92;&#x4F53;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#x4E2D;&#x7684;ul&gt;li&#x7684;&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#xFF0C;&#x4F7F;&#x5C55;&#x793A;&#x66F4;&#x6025;&#x7F8E;&#x89C2;</p>
<h3 id="&#x5217;&#x8868;&#x7EC4;">&#x5217;&#x8868;&#x7EC4;</h3>
<p>&#x5217;&#x8868;&#x7EC4;&#x662F;Bootstrap&#x6846;&#x67B6;&#x65B0;&#x589E;&#x7684;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x5236;&#x4F5C;&#x5217;&#x8868;&#x6E05;&#x5355;&#x3001;&#x5782;&#x76F4;&#x5BFC;&#x822A;&#x7B49;&#x6548;&#x679C;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x914D;&#x5408;&#x5176;&#x4ED6;&#x7684;&#x7EC4;&#x4EF6;&#x5236;&#x4F5C;&#x51FA;&#x66F4;&#x6F02;&#x4EAE;&#x7684;&#x7EC4;&#x4EF6;&#x3002;&#x5B83;&#x4E3B;&#x8981;&#x5305;&#x62EC;&#x4E24;&#x4E2A;&#x90E8;&#x5206;&#xFF1A;</p>
<ol>
<li>.list-group&#xFF1A;&#x5217;&#x8868;&#x7EC4;&#x5BB9;&#x5668;&#xFF0C;&#x5E38;&#x7528;&#x7684;&#x662F;ul&#x5143;&#x7D20;&#xFF0C;&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;ol&#x6216;&#x8005;div&#x5143;&#x7D20;</li>
<li>.list-group-item&#xFF1A;&#x5217;&#x8868;&#x9879;&#xFF0C;&#x5E38;&#x7528;&#x7684;&#x662F;li&#x5143;&#x7D20;&#xFF0C;&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;div&#x5143;&#x7D20;
&#x5982;&#xFF1A;</li>
</ol>
<h5 id="&#x5E26;&#x5FBD;&#x7AE0;&#x7684;&#x5217;&#x8868;&#x7EC4;">&#x5E26;&#x5FBD;&#x7AE0;&#x7684;&#x5217;&#x8868;&#x7EC4;</h5>
<p>&#x5E26;&#x5FBD;&#x7AE0;&#x7684;&#x5217;&#x8868;&#x7EC4;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x5C06;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x5FBD;&#x7AE0;&#x7EC4;&#x4EF6;&#x548C;&#x57FA;&#x7840;&#x5217;&#x8868;&#x7EC4;&#x7ED3;&#x5408;&#x5728;&#x4E00;&#x8D77;&#x7684;&#x4E00;&#x4E2A;&#x6548;&#x679C;&#x3002;&#x5177;&#x4F53;&#x505A;&#x6CD5;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;.list-group-item&#x4E2D;&#x6DFB;&#x52A0;&#x5FBD;&#x7AE0;&#x7EC4;&#x4EF6;.badge&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span>&gt;</span>&#x73A9;&#x8F6C;Bootstrap  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>5<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span>&gt;</span>&#x57FA;&#x7840;Bootstrap&#x7684;&#x7F51;&#x9875;&#x5F00;&#x53D1;  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;badge&quot;</span>&gt;</span>12<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
</code></pre>
<p>&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x7B11;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p>&#x5E26;&#x5FBD;&#x7AE0;&#x7684;&#x5217;&#x8868;</p>
<p>&#x5982;&#x679C;&#x5728;&#x5217;&#x8868;&#x7EC4;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5217;&#x8868;&#x9879;&#x662F;&#x94FE;&#x63A5;&#x7684;&#x8BDD;&#xFF0C;Bootstrap&#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x4E24;&#x79CD;&#x65B9;&#x6848;&#xFF1A;</p>
<p>&#x76F4;&#x63A5;&#x5C06;&#x94FE;&#x63A5;&#x7F6E;&#x4E8E;li.list-group-item&#x5BB9;&#x5668;&#x5185;&#xFF0C;&#x5B83;&#x4F1A;&#x6709;&#x94FE;&#x63A5;&#x4E0B;&#x5212;&#x7EBF;&#x7684;&#x5B58;&#x5728;
&#x5C06;ul.list-group&gt;li.list-group-item&#x7684;&#x7ED3;&#x6784;&#x6362;&#x6210;div.list-group&gt;a.list-group-item&#xFF0C;&#x6B64;&#x65F6;&#x4E0E;&#x9ED8;&#x8BA4;&#x7684;&#x5217;&#x8868;&#x7EC4;&#x663E;&#x793A;&#x65E0;&#x5F02;(emmet&#x4F1A;&#x5427;&#xFF1F;&#x90A3;&#x5C31;&#x80FD;&#x7406;&#x89E3;&#x6211;&#x7684;&#x4EE3;&#x7801;&#x7684;&#x610F;&#x601D;&#x2026;)</p>
<h5 id="&#x81EA;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x7EC4;">&#x81EA;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x7EC4;</h5>
<p>&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x9ED8;&#x8BA4;&#x7684;&#x5217;&#x8868;&#x7EC4;&#x4E4B;&#x5916;&#xFF0C;&#x4E3A;&#x4E86;&#x66F4;&#x6E05;&#x6670;&#x7684;&#x5C55;&#x793A;&#x5185;&#x5BB9;&#xFF0C;Bootstrap&#x5B9E;&#x73B0;&#x4E86;&#x81EA;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x7EC4;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x65B0;&#x589E;&#x4E86;&#x4E24;&#x4E2A;&#x7C7B;&#xFF1A;</p>
<p>.list-group-item-heading&#xFF1A;&#x7528;&#x6765;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x9879;&#x5934;&#x90E8;&#x6837;&#x5F0F;
.list-group-item-text&#xFF1A;&#x7528;&#x6765;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x9879;&#x4E3B;&#x8981;&#x5185;&#x5BB9;
&#x7ED3;&#x6784;&#x5982;&#x4E0B;&#x7F16;&#x5199;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">h4</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item-heading&quot;</span>&gt;</span>&#x56FE;&#x89E3;CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">h4</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item-text&quot;</span>&gt;</span>...<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;##&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">h4</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item-heading&quot;</span>&gt;</span>Sass&#x4E2D;&#x56FD;<span class="hljs-tag">&lt;/<span class="hljs-name">h4</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item-text&quot;</span>&gt;</span>...<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<h5 id="&#x5217;&#x8868;&#x9879;&#x7684;&#x72B6;&#x6001;&#x8BBE;&#x7F6E;">&#x5217;&#x8868;&#x9879;&#x7684;&#x72B6;&#x6001;&#x8BBE;&#x7F6E;</h5>
<p>&#x548C;&#x5176;&#x4ED6;&#x7684;&#x7EC4;&#x4EF6;&#x4E00;&#x6837;&#xFF0C;&#x5217;&#x8868;&#x7EC4;&#x4E5F;&#x4E24;&#x4E2A;&#x72B6;&#x6001;&#x6548;&#x679C;&#xFF1A;</p>
<p>.active&#xFF1A;&#x8868;&#x793A;&#x5F53;&#x524D;&#x72B6;&#x6001;
.disabled&#xFF1A;&#x8868;&#x793A;&#x7981;&#x7528;&#x72B6;&#x6001;
&#x53EA;&#x9700;&#x8981;&#x5728;&#x76F8;&#x5E94;&#x7684;&#x5217;&#x8868;&#x9879;&#x4E0A;&#x6DFB;&#x52A0;&#x3002;class=&quot;list-group-item active&quot;&gt;&#xFF0C;&#x4E3B;&#x8981;&#x5BF9;&#x4E8E;&#x8BE5;&#x9879;&#x7684;&#x80CC;&#x666F;&#x989C;&#x8272;&#x8FDB;&#x884C;&#x9AD8;&#x4EAE;&#xFF0C;&#x4EE5;&#x53CA;&#x5176;&#x4E2D;&#x7684;&#x5FBD;&#x7AE0;&#x8FDB;&#x884C;&#x4E86;&#x9AD8;&#x4EAE;&#x5904;&#x7406;</p>
<p>&#x7981;&#x7528;&#x72B6;&#x6001;&#xFF0C;&#x53EA;&#x662F;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x7070;&#x8272;&#x7684;&#x80CC;&#x666F;&#x8272;&#xFF0C;&#x4EE5;&#x53CA;&#x6587;&#x5B57;&#x7684;&#x6697;&#x8272;&#x5904;&#x7406;</p>
<p>&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x4E24;&#x4E2A;&#x6700;&#x5E38;&#x7528;&#x7684;&#x72B6;&#x6001;&#x4E4B;&#x5916;&#xFF0C;Bootstrap&#x4E3A;&#x6211;&#x4EEC;&#x7684;&#x5217;&#x8868;&#x7EC4;&#x4E5F;&#x63D0;&#x4F9B;&#x4E86;&#x4E0D;&#x540C;&#x7684;&#x60C5;&#x666F;&#x989C;&#x8272;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5728;&#x5217;&#x8868;&#x9879;&#x4E2D;&#x6DFB;&#x52A0;.list-group-item-danger&#x8FD9;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x7C7B;&#x3002;</p>
<h2 id="&#x9762;&#x677F;">&#x9762;&#x677F;</h2>
<p>&#x540C;&#x6837;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x65B0;&#x589E;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x57FA;&#x7840;&#x9762;&#x677F;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF0C;&#x5C31;&#x662F;&#x4E00;&#x4E2A;div&#x5BB9;&#x5668;&#x8FD0;&#x7528;&#x4E86;.panel&#x6837;&#x5F0F;&#xFF0C;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x5177;&#x6709;&#x8FB9;&#x6846;&#x7684;&#x6587;&#x672C;&#x663E;&#x793A;&#x5757;&#x3002;&#x7531;&#x4E8E;.panel&#x4E0D;&#x63A7;&#x5236;&#x4E3B;&#x9898;&#x989C;&#x8272;&#xFF0C;&#x6240;&#x4EE5;&#x5728;.panel&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x589E;&#x52A0;&#x4E00;&#x4E2A;&#x63A7;&#x5236;&#x989C;&#x8272;&#x7684;&#x4E3B;&#x9898;.panel-default&#xFF0C;&#x53E6;&#x5916;&#x5728;&#x91CC;&#x9762;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;.div.panel-body&#x6765;&#x653E;&#x7F6E;&#x9762;&#x677F;&#x4E3B;&#x4F53;&#x5185;&#x5BB9;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel panel-default&quot;</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- panel-default&#x5C31;&#x662F;&#x90A3;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x60C5;&#x666F;&#x7C7B;&#xFF0C;&#x8BBE;&#x7F6E;&#x4E0D;&#x540C;&#x7684;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x4E0D;&#x540C;&#x7684;&#x989C;&#x8272; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-body&quot;</span>&gt;</span>&#x6211;&#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x7840;&#x9762;&#x677F;&#xFF0C;&#x5E26;&#x6709;&#x9ED8;&#x8BA4;&#x4E3B;&#x9898;&#x6837;&#x5F0F;&#x98CE;&#x683C;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x5E26;&#x6709;&#x5934;&#x548C;&#x5C3E;&#x7684;&#x9762;&#x677F;</p>
<p>&#x57FA;&#x7840;&#x9762;&#x677F;&#x770B;&#x4E0A;&#x53BB;&#x592A;&#x7B80;&#x5355;&#x4E86;&#xFF0C;Bootstrap&#x4E3A;&#x4E86;&#x4E30;&#x5BCC;&#x9762;&#x677F;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x7279;&#x610F;&#x4E3A;&#x9762;&#x677F;&#x589E;&#x52A0;&#x201C;&#x9762;&#x677F;&#x5934;&#x90E8;&#x201D;&#x548C;&#x201C;&#x9875;&#x9762;&#x5C3E;&#x90E8;&#x201D;&#x7684;&#x6548;&#x679C;&#xFF1A;</p>
<ul>
<li>.panel-heading&#xFF1A;&#x7528;&#x6765;&#x8BBE;&#x7F6E;&#x9762;&#x677F;&#x5934;&#x90E8;&#x6837;&#x5F0F;</li>
<li>.panel-footer&#xFF1A;&#x7528;&#x6765;&#x8BBE;&#x7F6E;&#x9762;&#x677F;&#x5C3E;&#x90E8;&#x6837;&#x5F0F;</li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel panel-default&quot;</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x8FD9;&#x91CC;&#x5BF9;&#x4E8E;&#x4E0D;&#x540C;&#x7684;&#x60C5;&#x666F;&#x989C;&#x8272;&#xFF0C;&#x9762;&#x677F;&#x5934;&#x7684;&#x989C;&#x8272;&#x6539;&#x53D8;&#x5341;&#x5206;&#x660E;&#x663E; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-heading&quot;</span>&gt;</span>&#x56FE;&#x89E3;CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-body&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-footer&quot;</span>&gt;</span>&#x4F5C;&#x8005;&#xFF1A;&#x5927;&#x6F20;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x9762;&#x677F;&#x4E2D;&#x5D4C;&#x5957;&#x8868;&#x683C;</p>
<p>&#x5176;&#x5B9E;&#x9762;&#x677F;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x5904;&#x7406;&#xFF0C;&#x522B;&#x7684;&#x7EC4;&#x4EF6;&#x5B8C;&#x6210;&#x4E0D;&#x4E86;&#x7684;&#x60C5;&#x51B5;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x4E00;&#x822C;&#x60C5;&#x51B5;&#x4E0B;&#x53EF;&#x4EE5;&#x628A;&#x9762;&#x677F;&#x7406;&#x89E3;&#x4E3A;&#x4E00;&#x4E2A;&#x533A;&#x57DF;&#xFF0C;&#x6240;&#x4EE5;&#x5728;&#x4F7F;&#x7528;&#x9762;&#x677F;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x90FD;&#x4F1A;&#x5728;.panel-body&#x653E;&#x7F6E;&#x9700;&#x8981;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x53EF;&#x80FD;&#x662F;&#x56FE;&#x7247;&#x3001;&#x8868;&#x683C;&#x6216;&#x8005;&#x5217;&#x8868;&#x7B49;&#x3002;</p>
<p>&#x5982;&#x679C;&#x5728;&#x9762;&#x677F;&#x4E2D;&#x5D4C;&#x5957;&#x8868;&#x683C;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5C06;&#x7F16;&#x5199;&#x597D;&#x7684;&#x8868;&#x683C;&#x76F4;&#x63A5;&#x653E;&#x7F6E;&#x5728;&#x9762;&#x677F;&#x4E2D;&#x5373;&#x53EF;&#xFF0C;&#x4E0D;&#x8FC7;&#x6709;&#x7740;&#x5982;&#x4E0B;&#x4E24;&#x79CD;&#x5F62;&#x5F0F;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel panel-default&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-heading&quot;</span>&gt;</span>&#x56FE;&#x89E3;CSS3<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-body&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-comment">&lt;!-- &#x8FD9;&#x91CC;&#x662F;&#x653E;&#x5728;panel-body&#x540E;&#x9762;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x6211;&#x4EEC;&#x8FD8;&#x53EF;&#x4EE5;&#x5C06;table&#x653E;&#x5728;panel-body&#x91CC;&#x9762; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;table table-bordered&quot;</span>&gt;</span>&#x2026;<span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;panel-footer&quot;</span>&gt;</span>&#x4F5C;&#x8005;&#xFF1A;&#x5927;&#x6F20;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x4E24;&#x4E2A;&#x6548;&#x679C;&#x6700;&#x5927;&#x7684;&#x5DEE;&#x5F02;&#x662F;&#xFF1A;</p>
<ol>
<li>&#x653E;&#x5728;.panel-body&#x5185;&#x7684;&#x8868;&#x683C;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x5C31;&#x662F;&#x7B80;&#x5355;&#x7684;&#x5D4C;&#x5957;&#xFF0C;&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E9B;padding&#x503C;&#x7B49;&#x3002;</li>
<li>&#x653E;&#x5728;.panel-body&#x540E;&#x7684;&#x8868;&#x683C;&#xFF0C;&#x4F1A;&#x4E0E;&#x9762;&#x677F;&#x878D;&#x5408;&#x5728;&#x4E00;&#x8D77;&#xFF0C;&#x4E0E;&#x9762;&#x677F;&#x76F8;&#x63A5;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x4E0D;&#x4F1A;&#x6709;&#x7740;&#x8FB9;&#x6846;&#x7684;&#x5C55;&#x793A;&#xFF0C;&#x800C;&#x662F;&#x76F4;&#x63A5;&#x5C55;&#x793A;&#x9762;&#x677F;&#x7684;&#x8FB9;&#x6846;</li>
</ol>
<p><strong>&#x5728;&#x9762;&#x677F;&#x4E2D;&#x5D4C;&#x5957;&#x5217;&#x8868;&#x7EC4;&#x65F6;&#xFF0C;&#x540C;&#x6837;&#x662F;&#x8FD9;&#x6837;&#x7684;&#x4E24;&#x4E2A;&#x5DEE;&#x5F02;</strong></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="2-Bootstrap-CSS.html" class="navigation navigation-prev " aria-label="Previous page: 4.2 基础Bootstrap CSS">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../Project.html" class="navigation navigation-next " aria-label="Next page: 大作业">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.3 组件","level":"1.5.3","depth":2,"next":{"title":"大作业","level":"1.6","depth":1,"path":"Project.md","ref":"Project.md","articles":[]},"previous":{"title":"4.2 基础Bootstrap CSS","level":"1.5.2","depth":2,"path":"Bootstrap/2-Bootstrap-CSS.md","ref":"Bootstrap/2-Bootstrap-CSS.md","articles":[]},"dir":"ltr"},"config":{"plugins":["downloadpdf","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"shortName":"girlscodingday"},"livereload":{},"search":{},"downloadpdf":{"label":"Download PDF","multilingual":false,"base":"http://pan.baidu.com/s/1i5L60df"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"qq":true,"all":["weibo","instapaper","linkedin","pocket","instapaper"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"twitter":false,"messenger":false,"vk":false,"pocket":true,"google":false,"qzone":true,"linkedin":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Yang Wen <wenyang@codingirls.club>","pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Girls Coding Day Tutorial","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":"http://weibo.com/codingirlsclub","douban":"https://www.douban.com/people/codingirlsclub/"},"sidebar":{"Girls Coding Day":"https://girlscodingday.org/"}},"gitbook":"*","description":"The tutorial is created for Girls Coding Day","extension":null},"file":{"path":"Bootstrap/3-Components.md","mtime":"2017-06-30T16:49:35.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-02-12T07:38:59.260Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-downloadpdf/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

